Skip to content

Commit c2a4299

Browse files
committed
migrate golangci lint config
Signed-off-by: Markus Blaschke <[email protected]>
1 parent b61548f commit c2a4299

File tree

2 files changed

+35
-19
lines changed

2 files changed

+35
-19
lines changed

.github/workflows/codecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
check-latest: true
2121

2222
- name: Run Golangci lint
23-
uses: golangci/golangci-lint-action@v2
23+
uses: golangci/golangci-lint-action@v7
2424
with:
2525
version: latest
2626
args: --print-resources-usage

.golangci.yaml

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,42 @@
1-
run:
2-
timeout: 120m
3-
1+
version: "2"
42
linters:
53
enable:
64
- asciicheck
75
- bidichk
86
- bodyclose
9-
- errorlint
107
- copyloopvar
8+
- errorlint
9+
- gomodguard
10+
- gosec
11+
settings:
12+
gomodguard:
13+
blocked:
14+
modules:
15+
- github.com/Azure/go-autorest/autorest/azure/auth:
16+
reason: deprecated
17+
gosec:
18+
confidence: low
19+
config:
20+
global:
21+
audit: true
22+
exclusions:
23+
generated: lax
24+
presets:
25+
- comments
26+
- common-false-positives
27+
- legacy
28+
- std-error-handling
29+
paths:
30+
- third_party$
31+
- builtin$
32+
- examples$
33+
formatters:
34+
enable:
1135
- gofmt
1236
- goimports
13-
- gosec
14-
15-
linters-settings:
16-
gosec:
17-
excludes: []
18-
confidence: low
19-
config:
20-
global:
21-
audit: true
22-
23-
issues: {}
24-
25-
output:
26-
sort-results: true
37+
exclusions:
38+
generated: lax
39+
paths:
40+
- third_party$
41+
- builtin$
42+
- examples$

0 commit comments

Comments
 (0)