Skip to content

Commit 98e79fa

Browse files
committed
chore: update golangci-lint configuration and enable additional formatters
1 parent dc2b6da commit 98e79fa

1 file changed

Lines changed: 28 additions & 18 deletions

File tree

‎.golangci.yaml‎

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
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+
- gosec
10+
settings:
11+
gosec:
12+
confidence: low
13+
config:
14+
global:
15+
audit: true
16+
exclusions:
17+
generated: lax
18+
presets:
19+
- comments
20+
- common-false-positives
21+
- legacy
22+
- std-error-handling
23+
paths:
24+
- third_party$
25+
- builtin$
26+
- examples$
27+
formatters:
28+
enable:
1129
- gofmt
1230
- 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
31+
exclusions:
32+
generated: lax
33+
paths:
34+
- third_party$
35+
- builtin$
36+
- examples$

0 commit comments

Comments
 (0)