forked from vmware-tanzu/nsx-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
45 lines (42 loc) · 825 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
# golangci-lint configuration used for CI
run:
tests: true
timeout: 15m
issues:
exclude-files:
- third_party/
- pkg/client/
skip-dirs-use-default: true
linters-settings:
goimports:
local-prefixes: github.com/vmware-tanzu/nsx-operator
revive:
ignore-generated-header: false
severity: warning
confidence: 0.8
rules:
- name: unreachable-code
- name: errorf
- name: range
- name: superfluous-else
- name: var-declaration
- name: duplicated-imports
gosec:
excludes:
- G115
linters:
disable-all: true
enable:
- misspell
- gofmt
- unused
- staticcheck
- gosec
- goimports
- govet
- revive
issues:
exclude-rules:
- linters:
- staticcheck
text: "SA1019: lbs.RelaxScaleValidation"