-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
executable file
·44 lines (42 loc) · 1.13 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
output:
linters-settings:
errcheck:
check-type-assertion: true
check-blank: true
funlen:
lines: 100
statements: 80
gcognit:
min-complexity: 15
gocyclo:
min-complexity: 15
cyclop:
max-complexity: 15
package-average: 0.0
nestif:
min-complexity: 7
goconst:
min-len: 0
min-occurences: 3
gocritic:
enabled-checks: badLock,badRegexp,builtinShadowDecl,sloppyReassign,sloppyTypeAssert,truncateCmp,unnecessaryDefer,commentedOutImport,hexLiteral,importShadow,initClause,nestingReduce,whyNoLint,yodaStyleExpr,appendCombine,equalFold,hugeParam,indexAlloc,rangeExprCopy,rangeValCopy
godot:
comments: all
gomnd:
settings:
mnd:
checks: argument, case, condition, operation, return, assign
ignored-numbers: 0,1,2,10,16,100
lll:
line-length: 120
misspell:
local: US
predeclared:
q: true
unused:
check-exported: false
wsl:
allow-cuddle-declarations: true
linters:
enable-all: true
disable: nlreturn,ifshort,nolintlint,tparallel,paralleltest,testpackage,gci,scopelint,gochecknoglobals,interfacer,maligned,revive,golint,dupl,gochecknoinits