forked from banzaicloud/koperator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
66 lines (63 loc) · 1.51 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
run:
deadline: 2m
skip-dirs:
- client
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
# - dupl # NOTE: intentionally disabled
- errcheck
- exhaustive
- funlen
# - gochecknoinits # NOTE: intentionally disabled
- goconst
- gocritic # NOTE: remove nolinted functions
- gocyclo
- gofmt
- goimports
# - golint # NOTE: brokerID must be dealt as brokerId
# - gomnd
- goprintffuncname
# - gosec # Note: Fixme when refactoring http calls
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
# - noctx # Note: FIXME by adding refactoring http calls
# - nolintlint # NOTE: intentionally disabled
- rowserrcheck
- scopelint
- staticcheck
- structcheck
# - stylecheck # NOTE: brokerID must be dealt as brokerId
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
linters-settings:
gocyclo:
min-complexity: 36
dogsled:
max-blank-identifiers: 3 # default: 2
funlen:
# FIXME: we need to refactor functions with length more then ~200 lines
lines: 323 # default: 60
statements: 100 # default: 40
gocritic:
disabled-checks:
- commentFormatting
golint:
min-confidence: 0.1
goimports:
local-prefixes: github.com/banzaicloud
lll:
# FIXME: we should be able to reduce the length of lines to be closer to the default 120 lines
line-length: 300 # default: 120