Skip to content

Commit 5dda61a

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

File tree

1 file changed

+18
-27
lines changed

1 file changed

+18
-27
lines changed

.golangci.yml

+18-27
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,36 @@
1-
version: "2"
1+
formatters:
2+
enable:
3+
- gofmt
4+
- goimports
5+
settings:
6+
goimports:
7+
local-prefixes:
8+
- github.com/prometheus/procfs
29
linters:
310
enable:
411
- forbidigo
512
- godot
613
- misspell
714
- revive
815
- testifylint
16+
exclusions:
17+
generated: strict
18+
presets:
19+
- comments
20+
- common-false-positives
21+
- legacy
22+
- std-error-handling
23+
warn-unused: true
924
settings:
1025
forbidigo:
1126
forbid:
1227
- pattern: ^fmt\.Print.*$
1328
msg: Do not commit print statements.
1429
godot:
30+
capital: true
1531
exclude:
1632
# Ignore "See: URL".
1733
- 'See:'
18-
capital: true
1934
misspell:
2035
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$
36+
version: "2"

0 commit comments

Comments
 (0)