Skip to content

Commit 9539e95

Browse files
committed
migrate golangci config
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 6943f0b commit 9539e95

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

.golangci.yaml

+34-25
Original file line numberDiff line numberDiff line change
@@ -1,33 +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-
- gomodguard
15-
16-
linters-settings:
17-
gosec:
18-
excludes: []
19-
confidence: low
20-
config:
21-
global:
22-
audit: true
23-
24-
gomodguard:
25-
blocked:
26-
modules:
27-
- "github.com/Azure/go-autorest/autorest/azure/auth":
28-
reason: "deprecated"
29-
30-
issues: {}
31-
32-
output:
33-
sort-results: true
37+
exclusions:
38+
generated: lax
39+
paths:
40+
- third_party$
41+
- builtin$
42+
- examples$

0 commit comments

Comments
 (0)