Skip to content

Commit 6f0cb1a

Browse files
committed
migrate golangci config
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 847353f commit 6f0cb1a

File tree

2 files changed

+35
-19
lines changed

2 files changed

+35
-19
lines changed

.github/workflows/build-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
check-latest: true
2626

2727
- name: Run Golangci lint
28-
uses: golangci/golangci-lint-action@v6
28+
uses: golangci/golangci-lint-action@v7
2929
with:
3030
version: latest
3131
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)