Skip to content

Commit 0cd9365

Browse files
authored
Merge pull request #4249 from ShrillShrestha/updateLint
🌱 update golangci-lint config to use disable-all/enable
2 parents ff200d6 + ca07fe0 commit 0cd9365

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed

.golangci.yml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
11
linters:
2-
enable-all: true
3-
disable:
4-
- dupl
5-
- funlen
6-
- gochecknoglobals
7-
- gochecknoinits
8-
- lll
9-
- godox
10-
- wsl
11-
- whitespace
12-
- gocognit
13-
- gomnd
14-
- interfacer
15-
- godot
16-
- goerr113
17-
- nestif
2+
disable-all: true
3+
enable:
4+
- asciicheck
5+
- bodyclose
6+
- deadcode
7+
- depguard
8+
- dogsled
9+
- errcheck
10+
- goconst
11+
- gocritic
12+
- gocyclo
13+
- gofmt
14+
- goimports
15+
- golint
16+
- gomodguard
17+
- goprintffuncname
18+
- gosec
19+
- gosimple
20+
- govet
21+
- ineffassign
22+
- maligned
23+
- misspell
24+
- nakedret
25+
- nolintlint
26+
- prealloc
27+
- rowserrcheck
28+
- scopelint
29+
- staticcheck
30+
- structcheck
31+
- stylecheck
32+
- testpackage
33+
- typecheck
34+
- unconvert
35+
- unparam
36+
- varcheck
1837
# Run with --fast=false for more extensive checks
1938
fast: true
2039
issues:

0 commit comments

Comments
 (0)