Skip to content

Commit b6cd136

Browse files
committed
golangci.yml: enable all, disable failing linters
golangci-lint has a number of helpful linters and new ones are being continuously added. Instead of enabling only a minimal subset of these linters, enable all by default and - for now - disable failing ones. This allows us to make use of new linters on updates and to selectively enable those we deem useful. Signed-off-by: Valentin Rothberg <[email protected]>
1 parent 1240538 commit b6cd136

File tree

1 file changed

+71
-9
lines changed

1 file changed

+71
-9
lines changed

.golangci.yml

Lines changed: 71 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,77 @@ run:
1010
concurrency: 6
1111
deadline: 5m
1212
linters:
13-
enable:
14-
- dupl
15-
- gocritic
16-
- unparam
17-
- exportloopref
18-
- revive
19-
- prealloc
20-
- makezero
21-
- gofumpt
13+
enable-all: true
14+
disable:
15+
# linters deprecated by upstreams ...
16+
- interfacer
17+
- varcheck
18+
- deadcode
19+
- scopelint
20+
- maligned
21+
- nosnakecase
22+
- exhaustivestruct
23+
- structcheck
24+
- ifshort
25+
- golint
26+
# others to be re-enabled one-by-one ...
27+
- forbidigo
28+
- funlen
29+
- gci
30+
- gochecknoinits
31+
- gocognit
32+
- goconst
33+
- godox
34+
- golint
35+
- lll
36+
- maligned
37+
- mirror
38+
- misspell
39+
- nestif
40+
- unconvert
41+
- whitespace
42+
- wsl
43+
- contextcheck
44+
- cyclop
45+
- depguard
46+
- dupword
47+
- errchkjson
48+
- errname
49+
- errorlint
50+
- exhaustive
51+
- exhaustivestruct
52+
- ginkgolinter
53+
- gochecknoglobals
54+
- goerr113
55+
- gomnd
56+
- nolintlint
57+
- wrapcheck
58+
- wastedassign
59+
- varnamelen
60+
- testpackage
61+
- tenv
62+
- tagliatelle
63+
- stylecheck
64+
- paralleltest
65+
- nonamedreturns
66+
- nlreturn
67+
- nakedret
68+
- musttag
69+
- maintidx
70+
- ireturn
71+
- exhaustruct
72+
- gosec
73+
- godot
74+
- gocyclo
75+
- dogsled
76+
- tparallel
77+
- thelper
78+
- nilnil
79+
- nilerr
80+
- interfacebloat
81+
- forcetypeassert
82+
- gomoddirectives
83+
- predeclared
2284
linters-settings:
2385
errcheck:
2486
check-type-assertions: true

0 commit comments

Comments
 (0)