Skip to content

Commit fb3f0a0

Browse files
committed
update golangci-lint to v2.1.5
Signed-off-by: CrazyMax <[email protected]>
1 parent 7fde0e5 commit fb3f0a0

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

.golangci.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
1-
run:
2-
timeout: 10m
1+
version: "2"
32

43
linters:
4+
default: none
55
enable:
66
- depguard
7-
- gofmt
8-
- goimports
97
- revive
108
- govet
119
- importas
1210
- ineffassign
1311
- misspell
14-
- typecheck
1512
- errname
1613
- makezero
1714
- whitespace
18-
disable-all: true
19-
20-
linters-settings:
21-
depguard:
15+
settings:
16+
depguard:
17+
rules:
18+
main:
19+
deny:
20+
- pkg: io/ioutil
21+
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
22+
importas:
23+
no-unaliased: true
24+
exclusions:
25+
generated: lax
26+
presets:
27+
- comments
28+
- common-false-positives
29+
- legacy
30+
- std-error-handling
2231
rules:
23-
main:
24-
deny:
25-
- pkg: io/ioutil
26-
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
27-
importas:
28-
no-unaliased: true
32+
- linters:
33+
- revive
34+
text: stutters
35+
36+
formatters:
37+
enable:
38+
- gofmt
39+
- goimports
2940

3041
issues:
31-
exclude-rules:
32-
- linters:
33-
- revive
34-
text: "stutters"
42+
max-issues-per-linter: 0
43+
max-same-issues: 0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
ARG GO_VERSION="1.23"
1818
ARG XX_VERSION="1.6.1"
19-
ARG GOLANGCI_LINT_VERSION="v1.62"
19+
ARG GOLANGCI_LINT_VERSION="v2.1.5"
2020
ARG ADDLICENSE_VERSION="v1.1.1"
2121

2222
ARG LICENSE_ARGS="-c cli-docs-tool -l apache"

0 commit comments

Comments
 (0)