-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathgolangci.yml
87 lines (82 loc) · 2.03 KB
/
golangci.yml
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
83
84
85
86
87
run:
concurrency: 4
deadline: 2m
issues-exit-code: 1
tests: false
skip-dirs: []
skip-files: []
output:
formats: colored-line-number
print-issued-lines: true
print-linter-name: true
linters-settings:
ireturn:
allow:
- empty
- error
- generic
- context.Context
- github.com/hashicorp/terraform-plugin-framework/resource.Resource
- github.com/hashicorp/terraform-plugin-framework/datasource.DataSource
- github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier.Set
- github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier.Bool
- github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier.String
- github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier.Int64
- github.com/hashicorp/terraform-plugin-testing/plancheck.PlanCheck
errcheck:
check-type-assertions: false
check-blank: false
govet:
shadow: true
use-installed-packages: false
gofmt:
simplify: true
gocyclo:
min-complexity: 20
dupl:
threshold: 200
goconst:
min-len: 3
min-occurrences: 3
depguard:
rules:
- main:
files:
- $all
- "!$test"
allow:
- $gostd
- github.com/Twingate/terraform-provider-twingate/v3/twingate
- github.com/hasura/go-graphql-client
- github.com/hashicorp/
- github.com/iancoleman/strcase
- github.com/mitchellh/copystructure
- test:
files:
- $test
allow:
- $gostd
nestif:
min-complexity: 7
linters:
enable-all: true
disable:
- exhaustruct
- forcetypeassert
- gofumpt
- lll
- revive
- gomoddirectives
- exportloopref
disable-all: false
fast: false
issues:
exclude:
- should have comment
- "shadow: declaration of \"err\" shadows declaration"
- "ST1000:"
- "ST1005:"
exclude-use-default: false
max-per-linter: 0
max-same: 0
new: false