Skip to content

Commit 109111a

Browse files
committed
chore: clean up golangci-lint configuration
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 96a5ad6 commit 109111a

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.golangci.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
version: "2"
2-
issues:
3-
max-same-issues: 0
4-
52
linters:
63
enable:
74
- copyloopvar
@@ -17,7 +14,9 @@ linters:
1714
- usestdlibvars
1815
- wastedassign
1916
exclusions:
20-
generated: lax
17+
generated: strict
18+
paths:
19+
- ^.*\.(pb|y)\.go$
2120
presets:
2221
- comments
2322
- common-false-positives
@@ -30,11 +29,7 @@ linters:
3029
- structcheck
3130
- nolintlint
3231
path: _test.go
33-
paths:
34-
- ^.*\.(pb|y)\.go$
35-
- third_party$
36-
- builtin$
37-
- examples$
32+
warn-unused: true
3833
settings:
3934
depguard:
4035
rules:
@@ -65,26 +60,23 @@ linters:
6560
strconcat: true
6661
revive:
6762
rules:
68-
6963
- name: unused-parameter
7064
severity: warning
7165
disabled: true
72-
66+
issues:
67+
max-same-issues: 0
7368
formatters:
7469
enable:
7570
- gofmt
7671
- gofumpt
7772
- goimports
73+
exclusions:
74+
generated: strict
75+
paths:
76+
- ^.*\.(pb|y)\.go$
7877
settings:
7978
gofumpt:
8079
extra-rules: true
8180
goimports:
8281
local-prefixes:
8382
- github.com/prometheus/client_golang
84-
exclusions:
85-
generated: lax
86-
paths:
87-
- ^.*\.(pb|y)\.go$
88-
- third_party$
89-
- builtin$
90-
- examples$

0 commit comments

Comments
 (0)