Skip to content

Commit f4a0999

Browse files
committed
gha: golangci/golangci-lint-action@v7, golangci-lint v2.0.x
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent f34892d commit f4a0999

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
make build
3535
3636
- name: lint
37-
uses: golangci/golangci-lint-action@v6
37+
uses: golangci/golangci-lint-action@v7
3838
with:
39-
version: v1.59
39+
version: v2.0
4040
args: --print-resources-usage --timeout=10m --verbose
4141

4242
- name: Test

.golangci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
version: "2"
12
linters:
23
enable:
34
- bodyclose
4-
- dupword # Checks for duplicate words in the source code
5-
- gofmt
6-
- goimports
7-
- ineffassign
5+
- dupword
86
- misspell
97
- revive
10-
- staticcheck
118
- unconvert
12-
- unused
13-
- vet
149
disable:
1510
- errcheck
16-
17-
run:
18-
deadline: 2m
11+
exclusions:
12+
generated: disable
13+
presets:
14+
- comments
15+
- std-error-handling
16+
formatters:
17+
enable:
18+
- gofmt
19+
- goimports
20+
exclusions:
21+
generated: disable

0 commit comments

Comments
 (0)