Skip to content

Commit fdc4014

Browse files
authored
Merge pull request #30 from NETWAYS/dependabot/github_actions/golangci/golangci-lint-action-7
Bump golangci/golangci-lint-action from 6 to 7
2 parents 86b0a3f + 4d86945 commit fdc4014

File tree

2 files changed

+46
-30
lines changed

2 files changed

+46
-30
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
- uses: actions/checkout@v4
1616

1717
- name: golangci-lint
18-
uses: golangci/golangci-lint-action@v6
18+
uses: golangci/golangci-lint-action@v7
1919
with:
20-
version: v1.64
20+
version: v2.0.2

.golangci.yml

Lines changed: 44 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,47 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
tests: false
4-
54
linters:
6-
enable-all: true
7-
disable:
8-
- cyclop
9-
- depguard
10-
- exhaustivestruct
11-
- exhaustruct
12-
- forbidigo
13-
- gci
14-
- lll
15-
- godot
16-
- gofumpt
17-
- gochecknoinits
18-
- gochecknoglobals
19-
- goerr113
20-
- godox
21-
- gomnd
22-
- mnd
23-
- nakedret
24-
- musttag
25-
- nlreturn
26-
- nonamedreturns
27-
- wrapcheck
28-
- varnamelen
29-
linters-settings:
30-
funlen:
31-
lines: 90
5+
default: all
6+
disable:
7+
- cyclop
8+
- depguard
9+
- err113
10+
- exhaustruct
11+
- forbidigo
12+
- gochecknoglobals
13+
- gochecknoinits
14+
- godot
15+
- godox
16+
- lll
17+
- mnd
18+
- musttag
19+
- nakedret
20+
- nlreturn
21+
- nonamedreturns
22+
- varnamelen
23+
- wrapcheck
24+
settings:
25+
funlen:
26+
lines: 90
27+
exclusions:
28+
generated: lax
29+
presets:
30+
- comments
31+
- common-false-positives
32+
- legacy
33+
- std-error-handling
34+
paths:
35+
- third_party$
36+
- builtin$
37+
- examples$
38+
formatters:
39+
enable:
40+
- gofmt
41+
- goimports
42+
exclusions:
43+
generated: lax
44+
paths:
45+
- third_party$
46+
- builtin$
47+
- examples$

0 commit comments

Comments
 (0)