-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
41 lines (35 loc) · 1008 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
issues:
exclude-files:
# golangci-lint doesn't recognize our generated files (*.gen.go)
- ".+\\.gen\\.go$"
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused # everything below this is in addition to enabled-by-default
- goimports
- copyloopvar
- exhaustive
- unconvert
- unparam
- wastedassign
- predeclared
- gosec
- gocritic
- nonamedreturns
# These looked promising but weren't worth the trouble:
# - gomnd # too strict
# - tagliatelle # naming, not struct tag validness..
# full list available by running: $ golangci-lint linters
linters-settings:
gocritic:
disabled-checks:
- ifElseChain # false positives (some if-else chains with "short ifs" look more cumbersome rewritten)
gosec:
excludes:
- G115 # https://dev.to/ccoveille/about-the-gosec-g115-drama-or-how-i-faced-back-integer-conversion-overflow-in-go-1302