Skip to content

Commit dcea206

Browse files
committed
chore: clean up and sort golangci-lint configuration
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent cff69b9 commit dcea206

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

.golangci.yml

+27-26
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
1-
version: "2"
1+
formatters:
2+
enable:
3+
- gofmt
4+
- goimports
5+
6+
exclusions:
7+
generated: strict
8+
9+
settings:
10+
goimports:
11+
local-prefixes:
12+
- github.com/prometheus/procfs
13+
214
linters:
315
enable:
416
- forbidigo
517
- godot
618
- misspell
719
- revive
820
- testifylint
21+
22+
exclusions:
23+
generated: strict
24+
25+
presets:
26+
- comments
27+
- common-false-positives
28+
- legacy
29+
- std-error-handling
30+
931
settings:
1032
forbidigo:
1133
forbid:
1234
- pattern: ^fmt\.Print.*$
1335
msg: Do not commit print statements.
36+
1437
godot:
1538
exclude:
1639
# Ignore "See: URL".
1740
- 'See:'
1841
capital: true
42+
1943
misspell:
2044
locale: US
21-
exclusions:
22-
generated: lax
23-
presets:
24-
- comments
25-
- common-false-positives
26-
- legacy
27-
- std-error-handling
28-
paths:
29-
- third_party$
30-
- builtin$
31-
- examples$
32-
formatters:
33-
enable:
34-
- gofmt
35-
- goimports
36-
settings:
37-
goimports:
38-
local-prefixes:
39-
- github.com/prometheus/procfs
40-
exclusions:
41-
generated: lax
42-
paths:
43-
- third_party$
44-
- builtin$
45-
- examples$
45+
46+
version: "2"

0 commit comments

Comments
 (0)