Skip to content

Commit e6b8b14

Browse files
committed
golangci-lint: enable more linters
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 0280e30 commit e6b8b14

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.golangci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ linters:
33
- bodyclose
44
- depguard
55
- dogsled
6+
- durationcheck
7+
- exportloopref # Checks for pointers to enclosing loop variables
68
- gocyclo
79
- gofumpt
810
- goimports
@@ -14,12 +16,24 @@ linters:
1416
- megacheck
1517
- misspell
1618
- nakedret
19+
- nolintlint
20+
# - paralleltest
21+
# - predeclared
22+
- prealloc
23+
- reassign
1724
- revive
1825
- staticcheck
26+
- stylecheck # Replacement for golint
27+
- tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
28+
# - thelper
29+
- tparallel
1930
- typecheck
2031
- unconvert
2132
- unparam
2233
- unused
34+
- usestdlibvars
35+
- vet
36+
- wastedassign
2337

2438
disable:
2539
- errcheck
@@ -123,6 +137,9 @@ issues:
123137
linters:
124138
- errcheck
125139
- gosec
140+
- text: "ST1000: at least one file in a package should have a package comment"
141+
linters:
142+
- stylecheck
126143

127144
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
128145
max-issues-per-linter: 0

0 commit comments

Comments
 (0)