forked from submariner-io/submariner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
72 lines (70 loc) · 1.48 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
---
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- opinionated
# - performance
- style
disabled-checks:
- ifElseChain
- unnamedResult
gocyclo:
min-complexity: 20
lll:
line-length: 140
maligned:
suggest-new: true
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
# - dupl
- errcheck
- exportloopref
# - funlen
# - gochecknoglobals
# - gochecknoinits
- gocritic
- gocyclo
- gofmt
- goimports
# - golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- staticcheck
- structcheck
# - stylecheck
# - testpackage
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- wsl
issues:
exclude-rules:
# Separating explicit var declarations by blank lines seems excessive.
- linters:
- wsl
text: "declarations should never be cuddled"
# This rule incorrectly flags code where two logically-related lines are
# followed by an if conditional to check their err return.
- linters:
- wsl
text: "only one cuddle assignment allowed before if statement"
# This rule incorrectly flags code where two logically-related lines are
# used to create vars that are consumed in a loop.
- linters:
- wsl
text: "only one cuddle assignment allowed before range statement"