Skip to content

Commit 9441631

Browse files
committed
migrate golangci config
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 40abc47 commit 9441631

File tree

1 file changed

+34
-18
lines changed

1 file changed

+34
-18
lines changed

.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)