Skip to content

Commit 96df713

Browse files
committed
ci: migrate .golangci.yml to v2 format
1 parent 513d7d4 commit 96df713

1 file changed

Lines changed: 36 additions & 18 deletions

File tree

.golangci.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,42 @@
1-
linters-settings:
2-
staticcheck:
3-
checks: [
4-
"all",
5-
"-SA1019" # There are valid use cases of strings.Title
6-
]
7-
nakedret:
8-
max-func-lines: 0 # Disallow any unnamed return statement
9-
1+
version: "2"
102
linters:
113
enable:
12-
- unused
13-
- errcheck
14-
- gosimple
15-
- govet
16-
- ineffassign
17-
- staticcheck
18-
- typecheck
194
- nakedret
20-
- gofmt
215
- rowserrcheck
226
- unconvert
23-
- goimports
247
- unparam
8+
settings:
9+
govet:
10+
disable:
11+
# printf: non-constant format string in call to fmt.Errorf (govet)
12+
# showing up since golangci-lint version 1.60.1
13+
- printf
14+
staticcheck:
15+
checks:
16+
- all
17+
- "-SA1019" # This project is under active refactoring and not all code is up to date.
18+
- "-QF1001" # I'm a math noob
19+
- "-ST1016" # Some legit code uses this pattern
20+
nakedret:
21+
max-func-lines: 0 # Disallow any unnamed return statement
22+
exclusions:
23+
generated: lax
24+
presets:
25+
- comments
26+
- common-false-positives
27+
- legacy
28+
- std-error-handling
29+
paths:
30+
- third_party$
31+
- builtin$
32+
- examples$
33+
formatters:
34+
enable:
35+
- gofmt
36+
- goimports
37+
exclusions:
38+
generated: lax
39+
paths:
40+
- third_party$
41+
- builtin$
42+
- examples$

0 commit comments

Comments
 (0)