Skip to content

Commit 685cbe1

Browse files
committed
[+] bump golangci/golangci-lint-action to v8
1 parent c2183d9 commit 685cbe1

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: GolangCI-Lint
4141
if: runner.os == 'Linux'
42-
uses: golangci/golangci-lint-action@v6
42+
uses: golangci/golangci-lint-action@v8
4343
with:
4444
version: latest
4545
args: --verbose

.golangci.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1+
version: "2"
12
linters:
23
enable:
34
- gocyclo
4-
- revive
55
- misspell
6-
- unused
7-
8-
linters-settings:
9-
gocyclo:
10-
# minimal code complexity to report, 30 by default (but we recommend 10-20)
11-
min-complexity: 16
6+
- revive
7+
settings:
8+
gocyclo:
9+
min-complexity: 16
10+
exclusions:
11+
generated: lax
12+
presets:
13+
- comments
14+
- common-false-positives
15+
- legacy
16+
- std-error-handling
17+
paths:
18+
- third_party$
19+
- builtin$
20+
- examples$
21+
formatters:
22+
exclusions:
23+
generated: lax
24+
paths:
25+
- third_party$
26+
- builtin$
27+
- examples$

0 commit comments

Comments
 (0)