Skip to content

Commit 4d5f2af

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

1 file changed

Lines changed: 21 additions & 12 deletions

File tree

.golangci.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
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:
124
- unused
@@ -15,10 +7,27 @@ linters:
157
- govet
168
- ineffassign
179
- staticcheck
18-
- typecheck
1910
- nakedret
20-
- gofmt
2111
- rowserrcheck
2212
- unconvert
23-
- goimports
2413
- unparam
14+
settings:
15+
staticcheck:
16+
checks:
17+
- all
18+
- "-SA1019" # There are valid use cases of strings.Title
19+
nakedret:
20+
max-func-lines: 0 # Disallow any unnamed return statement
21+
exclusions:
22+
generated: lax
23+
presets:
24+
- comments
25+
- common-false-positives
26+
- legacy
27+
- std-error-handling
28+
formatters:
29+
enable:
30+
- gofmt
31+
- goimports
32+
exclusions:
33+
generated: lax

0 commit comments

Comments
 (0)