-
Notifications
You must be signed in to change notification settings - Fork 118
/
.golangci.yml
48 lines (44 loc) · 908 Bytes
/
.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
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- bodyclose
- cyclop
- durationcheck
- errname
- errorlint
- exportloopref
- goimports
- gocritic
- gosec
linters-settings:
cyclop:
max-complexity: 18
gocritic:
disabled-checks:
- singleCaseSwitch
issues:
exclude-rules:
- path: "."
linters:
- typecheck
- path: rules/
linters:
- gosec
# Allow unused variables that are necessary for EngineMetadata,
# since they are referenced from .rego files.
- path: 'rules/*/(.+)\.tf|cf\.go'
text: "`.+(Good|Bad)Examples|Links|RemediationMarkdown` is unused"
linters:
- unused
- path: pkg/scanners/terraform/parser/funcs/
linters:
- cyclop
- errorlint
- gocritic
- gosec