forked from dmacvicar/terraform-provider-libvirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
69 lines (67 loc) · 1.61 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
linters-settings:
lll:
line-length: 140
gosec:
# complains that we allow to bypass checking certificates/keys
excludes:
- G402
- G106
gomnd:
ignored-functions:
- strings.SplitN
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
- 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