Skip to content

Commit f25c369

Browse files
authored
Merge pull request #103 from dnephin/linter-whitelist
Use an explicit list of linters
2 parents 0f3ab42 + 1dfd4a8 commit f25c369

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ workflows:
4343
git config --global core.symlinks true
4444
4545
- go/lint:
46-
golangci-lint-version: 1.21.0
46+
golangci-lint-version: 1.24.0
4747

4848
- build
4949
- run

.golangci.yml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@ linters-settings:
66
min-occurrences: 4
77
lll:
88
line-length: 120
9-
gocritic:
10-
enabled-tags:
11-
- diagnostic
12-
- performance
13-
- style
14-
- experimental
15-
disabled-checks:
16-
- importShadow
17-
- paramTypeCombine
18-
- commentFormatting # https://github.com/go-critic/go-critic/issues/755
19-
- unnamedResult
20-
settings:
21-
hugeParam:
22-
sizeThreshold: 256
239

2410
issues:
2511
exclude-use-default: false
@@ -29,14 +15,32 @@ issues:
2915
- 'always receives'
3016

3117
linters:
32-
enable-all: true
33-
disable:
34-
- dupl
35-
- gochecknoglobals
36-
- gochecknoinits
37-
- gosec
38-
- scopelint
39-
- maligned
40-
- godox
41-
- wsl
42-
- funlen
18+
disable-all: true
19+
enable:
20+
- bodyclose
21+
- deadcode
22+
- depguard
23+
- errcheck
24+
- gocognit
25+
- goconst
26+
- gocyclo
27+
- gofmt
28+
- goimports
29+
- golint
30+
- gosimple
31+
- govet
32+
- ineffassign
33+
- interfacer
34+
- lll
35+
- misspell
36+
- nakedret
37+
- prealloc
38+
- staticcheck
39+
- structcheck
40+
- stylecheck
41+
- typecheck
42+
- unconvert
43+
- unparam
44+
- unused
45+
- varcheck
46+
- whitespace

0 commit comments

Comments
 (0)