-
Notifications
You must be signed in to change notification settings - Fork 458
/
.golangci.yaml
74 lines (72 loc) · 1.82 KB
/
.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
linters-settings:
lll:
line-length: 140
gosec:
# complains that we allow to bypass checking certificates/keys
excludes:
- G402
- G106
- G115 # Potential integer overflow when converting between integer types
mnd:
ignored-functions:
- strings.SplitN
- os.WriteFile # perms is ok as numbers
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- "github.com/dmacvicar/terraform-provider-libvirt"
- "github.com/community-terraform-providers/terraform-provider-ignition/v2"
- "github.com/digitalocean/go-libvirt"
- "libvirt.org/go/libvirtxml"
- "github.com/davecgh/go-spew"
- "github.com/google/uuid"
- "github.com/hashicorp/terraform-plugin-sdk/v2"
- "github.com/hooklift/iso9660"
- "github.com/mattn/goveralls"
- "github.com/stretchr/testify"
- "golang.org/x/crypto"
- "golang.org/x/lint"
revive:
rules:
- name: unused-parameter
disabled: true
linters:
enable-all: false
enable:
- unparam
- exhaustive
- godot
- nilerr
- gosec
- revive
- gocritic
- misspell
- lll
- errorlint
- errcheck
- mnd
- nolintlint
issues:
exclude-rules:
- text: "Error return value of `d.Set` is not checked"
linters:
- errcheck
- text: "Magic number: 1024, in <argument> detected"
linters:
- mnd
- text: "ifElseChain: rewrite if-else to switch statement"
linters:
- gocritic
- text: "should check error returned from os.Open() before deferring file.Close()"
linters:
- staticcheck
- path: '(.+)_test\.go'
linters:
- lll
- text: "d.GetOkExists is deprecated"
linters:
- staticcheck