Skip to content

Commit b4741a3

Browse files
committed
chore: clean up golangci-lint configuration
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 14ccb93 commit b4741a3

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

.golangci.yml

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: "2"
22
issues:
33
max-same-issues: 0
4-
54
linters:
65
enable:
76
- copyloopvar
@@ -17,24 +16,21 @@ linters:
1716
- usestdlibvars
1817
- wastedassign
1918
exclusions:
20-
generated: lax
21-
presets:
22-
- comments
23-
- common-false-positives
24-
- legacy
25-
- std-error-handling
26-
rules:
27-
- linters:
28-
- errcheck
29-
- govet
30-
- structcheck
31-
- nolintlint
32-
path: _test.go
33-
paths:
34-
- ^.*\.(pb|y)\.go$
35-
- third_party$
36-
- builtin$
37-
- examples$
19+
presets:
20+
- comments
21+
- common-false-positives
22+
- legacy
23+
- std-error-handling
24+
rules:
25+
- linters:
26+
- errcheck
27+
- govet
28+
- structcheck
29+
- nolintlint
30+
path: _test.go
31+
paths:
32+
- ^.*\.(pb|y)\.go$
33+
warn-unused: true
3834
settings:
3935
depguard:
4036
rules:
@@ -65,11 +61,9 @@ linters:
6561
strconcat: true
6662
revive:
6763
rules:
68-
6964
- name: unused-parameter
7065
severity: warning
7166
disabled: true
72-
7367
formatters:
7468
enable:
7569
- gofmt
@@ -82,9 +76,5 @@ formatters:
8276
local-prefixes:
8377
- github.com/prometheus/client_golang
8478
exclusions:
85-
generated: lax
8679
paths:
8780
- ^.*\.(pb|y)\.go$
88-
- third_party$
89-
- builtin$
90-
- examples$

0 commit comments

Comments
 (0)