Skip to content

Commit b9ba935

Browse files
committed
chore: clean up golangci-lint configuration
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 14ccb93 commit b9ba935

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

.golangci.yml

Lines changed: 8 additions & 16 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,7 +16,9 @@ linters:
1716
- usestdlibvars
1817
- wastedassign
1918
exclusions:
20-
generated: lax
19+
generated: strict
20+
paths:
21+
- ^.*\.(pb|y)\.go$
2122
presets:
2223
- comments
2324
- common-false-positives
@@ -30,11 +31,7 @@ linters:
3031
- structcheck
3132
- nolintlint
3233
path: _test.go
33-
paths:
34-
- ^.*\.(pb|y)\.go$
35-
- third_party$
36-
- builtin$
37-
- examples$
34+
warn-unused: true
3835
settings:
3936
depguard:
4037
rules:
@@ -65,26 +62,21 @@ linters:
6562
strconcat: true
6663
revive:
6764
rules:
68-
6965
- name: unused-parameter
7066
severity: warning
7167
disabled: true
72-
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)