Skip to content

Commit 4e8324f

Browse files
authored
⚙️ lint
1 parent 10c6a00 commit 4e8324f

File tree

1 file changed

+54
-40
lines changed

1 file changed

+54
-40
lines changed

.golangci.yaml

Lines changed: 54 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,65 @@
1+
version: "2"
12
run:
2-
timeout: 10m
3-
4-
# Run linters over integration tests
53
build-tags:
64
- integration
7-
85
linters:
9-
disable-all: true # Disable defaults, then enable the ones we want
6+
default: none
107
enable:
8+
- bodyclose
119
- errcheck
12-
- gosimple
10+
- gocritic
11+
- gosec
1312
- govet
1413
- ineffassign
14+
- misspell
15+
- revive
1516
- staticcheck
16-
- typecheck
17+
- unconvert
1718
- unused
18-
- bodyclose
19-
- stylecheck
20-
- gosec
21-
- goimports
19+
settings:
20+
misspell:
21+
locale: UK
22+
extra-words:
23+
- typo: sanetisation
24+
correction: sanitisation
25+
- typo: sanetise
26+
correction: sanitise
27+
- typo: sanetising
28+
correction: sanitising
29+
revive:
30+
rules:
31+
- name: exported
32+
arguments:
33+
- disableStutteringCheck
34+
severity: warning
35+
disabled: false
36+
exclusions:
37+
generated: lax
38+
presets:
39+
- comments
40+
- common-false-positives
41+
- legacy
42+
- std-error-handling
43+
paths:
44+
- third_party$
45+
- builtin$
46+
- examples$
47+
formatters:
48+
enable:
2249
- gci
23-
- revive
24-
- gocritic
25-
- unconvert
26-
- misspell
27-
28-
linters-settings:
29-
goimports:
30-
local-prefixes: github.com/ARM-software
31-
gci:
32-
sections:
33-
- Standard
34-
- Default
35-
- Prefix(github.com/ARM-software)
36-
revive:
37-
rules:
38-
- name: exported
39-
severity: warning
40-
disabled: false
41-
arguments:
42-
- "disableStutteringCheck"
43-
misspell:
44-
locale: UK
45-
extra-words:
46-
- typo: "sanetisation"
47-
correction: "sanitisation"
48-
- typo: "sanetise"
49-
correction: "sanitise"
50-
- typo: "sanetising"
51-
correction: "sanitising"
50+
- goimports
51+
settings:
52+
gci:
53+
sections:
54+
- Standard
55+
- Default
56+
- Prefix(github.com/ARM-software)
57+
goimports:
58+
local-prefixes:
59+
- github.com/ARM-software
60+
exclusions:
61+
generated: lax
62+
paths:
63+
- third_party$
64+
- builtin$
65+
- examples$

0 commit comments

Comments
 (0)