Skip to content

Commit 29ea131

Browse files
committed
static analysis conf: remove deprecated linters, add nonamedreturns, fix typo
1 parent ec34a42 commit 29ea131

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.golangci.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ run:
77
linters:
88
disable-all: true
99
enable:
10-
- deadcode
1110
- errcheck
1211
- gosimple
1312
- govet
1413
- ineffassign
1514
- staticcheck
16-
- structcheck
1715
- typecheck
18-
- unused
19-
- varcheck # everything below this is in addition to enabled-by-default
16+
- unused # everything below this is in addition to enabled-by-default
2017

2118
- goimports
2219
- exportloopref # successor of "scopelint"
@@ -27,14 +24,15 @@ linters:
2724
- predeclared
2825
- gosec
2926
- gocritic
27+
- nonamedreturns
3028

3129
# These looked promising but weren't worth the trouble:
3230
# - gomnd # too strict
3331
# - tagliatelle # naming, not struct tag validness..
3432

35-
# full list available by running: $ golangci-lint linter
33+
# full list available by running: $ golangci-lint linters
3634

3735
linters-settings:
3836
gocritic:
3937
disabled-checks:
40-
- ifElseChain # false positives (some if-else chains with "short ifs" look more cumbersome rewritten)
38+
- ifElseChain # false positives (some if-else chains with "short ifs" look more cumbersome rewritten)

0 commit comments

Comments
 (0)