Skip to content

Commit 7bf1492

Browse files
committed
rerebump linter and migrate config
1 parent d0e9a30 commit 7bf1492

File tree

2 files changed

+41
-37
lines changed

2 files changed

+41
-37
lines changed

.github/workflows/style.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
with:
2727
go-version-file: go.mod
2828

29-
- uses: golangci/golangci-lint-action@v6.5.2
29+
- uses: golangci/golangci-lint-action@v8.0.0
3030
with:
31-
version: v1.61.0
31+
version: v2.1.6
3232

3333
- uses: reviewdog/action-misspell@v1
3434
if: ${{ always() }}

.golangci.yaml

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
1+
version: "2"
12
run:
23
timeout: 5m
34

4-
issues:
5-
exclude-dirs:
6-
- internal
7-
- pkg/registry
8-
exclude-rules:
9-
- path: test # Excludes /test, *_test.go etc.
10-
linters:
11-
- gosec
12-
135
linters:
6+
exclusions:
7+
paths:
8+
- internal
9+
- pkg/registry
10+
rules:
11+
- path: test
12+
linters:
13+
- gosec
1414
enable:
15-
- asciicheck
16-
- depguard
17-
- errorlint
18-
- gofmt
19-
- gosec
20-
- goimports
21-
- importas
22-
- prealloc
23-
- revive
24-
- misspell
25-
- stylecheck
26-
- tparallel
27-
- unconvert
28-
- unparam
29-
- unused
30-
- whitespace
31-
15+
- asciicheck
16+
- depguard
17+
- errorlint
18+
- gosec
19+
- importas
20+
- misspell
21+
- prealloc
22+
- revive
23+
- staticcheck
24+
- tparallel
25+
- unconvert
26+
- unparam
27+
- unused
28+
- whitespace
3229
disable:
33-
- errcheck
34-
35-
linters-settings:
36-
depguard:
37-
rules:
38-
main:
39-
deny:
40-
- pkg: "crypto/sha256"
41-
desc: use crypto.SHA256 instead
30+
- errcheck
31+
settings:
32+
depguard:
33+
rules:
34+
main:
35+
deny:
36+
- pkg: crypto/sha256
37+
desc: use crypto.SHA256 instead
38+
formatters:
39+
exclusions:
40+
paths:
41+
- internal
42+
- pkg/registry
43+
enable:
44+
- gofmt
45+
- goimports

0 commit comments

Comments
 (0)