forked from dmacvicar/terraform-provider-libvirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
48 lines (46 loc) · 937 Bytes
/
.golangci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
linters-settings:
lll:
line-length: 140
gosec:
# complains that we allow to bypass checking certificates/keys
excludes:
- G402
- G106
gomnd:
ignored-functions:
- strings.SplitN
linters:
enable-all: false
enable:
- ifshort
- unparam
- exhaustive
- godot
- nilerr
- gosec
- revive
- gocritic
- misspell
- depguard
- lll
- errorlint
- errcheck
- gomnd
- nolintlint
issues:
exclude-rules:
- text: "Error return value of `d.Set` is not checked"
linters:
- errcheck
- text: "Magic number: 1024, in <argument> detected"
linters:
- gomnd
- text: "ifElseChain: rewrite if-else to switch statement"
linters:
- gocritic
- text: "should check returned error before deferring file.Close()"
linters:
- staticcheck
- path: '(.+)_test\.go'
linters:
- lll