Skip to content

Commit cc651da

Browse files
thaJeztahjsturtevant
authored andcommitted
golangci-lint: sort linters in config file
THis makes it easier to find which linters are enabled when going through the list. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 26d2e9b commit cc651da

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.golangci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
linters:
22
enable:
3-
- structcheck
4-
- varcheck
5-
- staticcheck
6-
- unconvert
3+
- exportloopref # Checks for pointers to enclosing loop variables
74
- gofmt
85
- goimports
9-
- revive
6+
- gosec
107
- ineffassign
11-
- vet
12-
- unused
138
- misspell
14-
- gosec
15-
- exportloopref # Checks for pointers to enclosing loop variables
9+
- revive
10+
- staticcheck
11+
- structcheck
1612
- tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
13+
- unconvert
14+
- unused
15+
- varcheck
16+
- vet
1717
disable:
1818
- errcheck
1919

0 commit comments

Comments
 (0)