Skip to content

Commit 5b61251

Browse files
rolinhtklauser
authored andcommitted
ci: enable more golangci-lint checkers, update config for Go 1.18
Commit 3f5cb13 updated CI for Go 1.18 as well as the version of golangci-lint. However, it omitted updating the golangci-lint configuration to default for Go 1.18 instead of Go 1.17. This commit does this and also enables more checkers. Signed-off-by: Robin Hahling <[email protected]>
1 parent 4332e23 commit 5b61251

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.golangci.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,66 @@ linters:
55
disable-all: true
66
enable:
77
- asciicheck
8+
- bidichk
9+
- bodyclose
10+
- containedctx
11+
- cyclop
812
- deadcode
913
- dogsled
14+
- dupl
1015
- durationcheck
1116
- errcheck
1217
- errname
1318
- errorlint
1419
- exhaustive
1520
- exportloopref
1621
- forcetypeassert
22+
- gocognit
23+
- goconst
24+
- gocritic
1725
- godot
1826
- goerr113
1927
- gofmt
2028
- goimports
29+
- gomnd
2130
- gosec
2231
- gosimple
2332
- govet
33+
- grouper
2434
- ifshort
2535
- ineffassign
36+
- ireturn
37+
- makezero
2638
- misspell
2739
- nestif
2840
- nilerr
41+
- nilnil
2942
- prealloc
3043
- predeclared
3144
- revive
3245
- rowserrcheck
3346
- staticcheck
3447
- structcheck
48+
- tenv
3549
- thelper
50+
- tparallel
3651
- typecheck
3752
- unconvert
3853
- unparam
3954
- unused
4055
- varcheck
56+
- wastedassign
4157

4258
linters-settings:
59+
cyclop:
60+
skip-tests: true
4361
gosimple:
44-
go: "1.17"
62+
go: "1.18"
4563
govet:
4664
enable-all: true
4765
staticcheck:
48-
go: "1.17"
66+
go: "1.18"
4967
stylecheck:
50-
go: "1.17"
68+
go: "1.18"
5169
unused:
52-
go: "1.17"
70+
go: "1.18"

0 commit comments

Comments
 (0)