Skip to content

Commit 04a441c

Browse files
committed
chore: update linter config to resolve all warnings
1 parent 8b37d7f commit 04a441c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.golangci.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
run:
22
tests: true
3-
skip-dirs:
4-
- _examples
53

64
output:
75
print-issued-lines: false
86

97
linters:
108
enable-all: true
119
disable:
12-
- maligned
1310
- lll
1411
- gocyclo
1512
- gochecknoglobals
@@ -19,12 +16,10 @@ linters:
1916
- funlen
2017
- gocognit
2118
- gomnd
22-
- goerr113
2319
- godot
2420
- nestif
2521
- testpackage
2622
- nolintlint
27-
- exhaustivestruct
2823
- wrapcheck
2924
- gci
3025
- gofumpt
@@ -35,11 +30,7 @@ linters:
3530
- forbidigo
3631
- revive
3732
- cyclop
38-
- ifshort
3933
- paralleltest
40-
- interfacer
41-
- scopelint
42-
- golint
4334
- wastedassign
4435
- forcetypeassert
4536
- gomoddirectives
@@ -52,16 +43,13 @@ linters:
5243
- maintidx
5344
- unused # Does not work with type parameters
5445
- dupword
55-
- structcheck
56-
- nosnakecase
57-
- varcheck
58-
- deadcode
5946
- depguard
6047
- mnd
48+
- execinquery
49+
- exportloopref
50+
- err113
6151

6252
linters-settings:
63-
govet:
64-
check-shadowing: true
6553
gocyclo:
6654
min-complexity: 10
6755
dupl:
@@ -74,6 +62,8 @@ linters-settings:
7462

7563
issues:
7664
max-per-linter: 0
65+
exclude-dirs:
66+
- _examples
7767
max-same: 0
7868
exclude-use-default: false
7969
exclude:

0 commit comments

Comments
 (0)