Skip to content

Commit d8d6bd6

Browse files
committed
chore(lint): golangci-lint: update to version 2
1 parent 0e8de3c commit d8d6bd6

File tree

1 file changed

+33
-14
lines changed

1 file changed

+33
-14
lines changed

.golangci.yaml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,43 @@
1+
version: "2"
12
linters:
23
enable:
34
- dogsled
45
- dupl
5-
- gofmt
6-
- goimports
76
- gosec
87
- misspell
98
- nakedret
10-
- stylecheck
9+
- staticcheck
1110
- unconvert
1211
- unparam
1312
- whitespace
14-
linters-settings:
15-
stylecheck:
16-
checks:
17-
- all
18-
- '-ST1003' # disable uppercase acronyms, like Google Go SDK
19-
issues:
20-
exclude-rules:
21-
- path: openapi2/copy.go
22-
text: "`copyOrIgnoreEndpoint` - `path` is unused"
23-
- path: openapi2/copy.go
24-
text: "`copyOrIgnoreEndpoint` - `specOld` is unused"
13+
settings:
14+
staticcheck:
15+
checks:
16+
- -ST1003
17+
- all
18+
exclusions:
19+
generated: lax
20+
presets:
21+
- comments
22+
- common-false-positives
23+
- legacy
24+
- std-error-handling
25+
rules:
26+
- path: openapi2/copy.go
27+
text: '`copyOrIgnoreEndpoint` - `path` is unused'
28+
- path: openapi2/copy.go
29+
text: '`copyOrIgnoreEndpoint` - `specOld` is unused'
30+
paths:
31+
- third_party$
32+
- builtin$
33+
- examples$
34+
formatters:
35+
enable:
36+
- gofmt
37+
- goimports
38+
exclusions:
39+
generated: lax
40+
paths:
41+
- third_party$
42+
- builtin$
43+
- examples$

0 commit comments

Comments
 (0)