Skip to content

Commit 8acf298

Browse files
authored
Merge pull request #42 from wandera/JSC-65464_golangci-lint
actions: bump
2 parents ee5ec76 + 941be55 commit 8acf298

File tree

2 files changed

+32
-21
lines changed

2 files changed

+32
-21
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
with:
1414
go-version-file: go.mod
1515
- name: golangci-lint
16-
uses: wandera/golangci-lint-action@v4
16+
uses: golangci/golangci-lint-action@v8
1717
with:
18-
version: v1.64.8
18+
version: v2.1

.golangci.yml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1-
run:
2-
timeout: 5m
1+
version: "2"
32
linters:
4-
disable-all: true
3+
default: none
54
enable:
6-
- gosimple
5+
- godot
6+
- gosec
77
- govet
88
- ineffassign
99
- staticcheck
10-
- typecheck
10+
- unparam
1111
- unused
12-
- gofmt
13-
- gci
14-
- godot
15-
- gofumpt
1612
- whitespace
17-
18-
issues:
19-
exclude-rules:
20-
# Exclude some linters from running on tests files.
21-
- path: _test\.go
22-
linters:
23-
- ineffassign
24-
13+
exclusions:
14+
generated: lax
15+
presets:
16+
- comments
17+
- common-false-positives
18+
- legacy
19+
- std-error-handling
20+
rules:
2521
- linters:
26-
- staticcheck
27-
text: "SA4006:" #SA4006: this value of `not_used` is never used (staticcheck)
22+
- gosec
23+
- ineffassign
24+
path: _test\.go
25+
paths:
26+
- third_party$
27+
- builtin$
28+
- examples$
29+
formatters:
30+
enable:
31+
- gci
32+
- gofumpt
33+
exclusions:
34+
generated: lax
35+
paths:
36+
- third_party$
37+
- builtin$
38+
- examples$

0 commit comments

Comments
 (0)