forked from newrelic/terraform-provider-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
82 lines (73 loc) · 2.02 KB
/
.golangci.yml
File metadata and controls
82 lines (73 loc) · 2.02 KB
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
75
76
77
78
79
80
81
82
version: "2"
run:
timeout: 5m
tests: false
linters:
default: none
enable:
- errcheck
- gocyclo
- staticcheck
- govet
- ineffassign
- misspell
- revive
- unconvert
- unused
# vet is deprecated in favor of govet
# - vet
settings:
errcheck:
exclude-functions:
- 'github.com/hashicorp/terraform-plugin-sdk/helper/schema:ForceNew|Set'
- 'github.com/hashicorp/terraform-plugin-sdk/helper/schema:Set'
- 'github.com/newrelic/terraform-provider-newrelic/newrelic:Set'
- 'io:Close|Write'
# revive:
# rules:
# - name: unused-parameter
# severity: warning
# disabled: false
# - name: redefines-builtin-id
# severity: warning
# disabled: false
# - name: exported
# severity: warning
# disabled: false
# arguments:
# - disableStutteringCheck
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 25
govet:
enable:
- assign
- bools
- framepointer
- stringintconv
- structtag
- shadow
misspell:
ignore-rules:
- newrelic
exclusions:
rules:
- linters:
- revive
text:
# the following exclusions are being made as they fit Golang conventions, which do not
# necessarily go by the ideal definition of variables/functions with Terraform
"exported: exported *|unused-parameter: parameter *|redefines-builtin-id: redefinition of the built-in *"
- linters:
- staticcheck
text:
# the following exclusions are being made as they fit Golang conventions, which do not
# necessarily go by the ideal definition of variables/functions with Terraform
"SA1019:|S1009:|QF1001:|QF1011:|SA1006:|QF1003:|ST1023:"
formatters:
enable:
- gofmt
issues:
# disable limits on issue reporting
max-issues-per-linter: 0
max-same-issues: 0