forked from maratori/testpackage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
124 lines (119 loc) · 2.82 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
run:
timeout: 1m # default 1m
tests: true # default true
linters-settings:
errcheck:
check-type-assertions: true # default false
check-blank: true # default false
ignore: "fmt:.*" # default fmt:.*
exclude: "" # default ""
govet:
enable-all: true
settings:
shadow:
strict: true # default false
structcheck:
exported-fields: true # default false
unused:
check-exported: true # default false
varcheck:
exported-fields: true # default false
dupl:
threshold: 150 # default 150
funlen:
lines: 60 # default 60
statements: 40 # default 40
gocognit:
min-complexity: 15 # minimal code complexity to report, 30 by default (but we recommend 10-20)
goconst:
min-len: 3 # default 3
min-occurrences: 3 # default 3
gocritic:
settings:
captLocal:
paramsOnly: false # default true
elseif:
skipBalanced: false # default true
underef:
skipRecvDeref: false # default true
gocyclo:
min-complexity: 15 # default 30
goimports:
local-prefixes: github.com/maratori/testpackage
golint:
min-confidence: 0 # default 0.8
gomnd:
settings:
mnd:
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
checks: argument,case,condition,operation,return,assign # default argument,case,condition,operation,return,assign
ignored-numbers: 0,1 # default 0,1
lll:
line-length: 120 # default 120
maligned:
suggest-new: true # default false
misspell:
locale: us
ignore-words: "" # default: ""
nakedret:
max-func-lines: 0 # default 30
prealloc:
simple: false # default true
range-loops: true # default true
for-loops: true # default false
unparam:
check-exported: true # default false
wsl:
strict-append: true # default true
allow-assign-and-call: true # default true
allow-multiline-assign: true # default true
allow-case-trailing-whitespace: true # default true
allow-cuddle-declarations: false # default false
linters:
disable-all: true
enable:
## enabled by default
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
#- unused # false positives
- varcheck
## disabled by default
- bodyclose
- dupl
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- lll
- maligned
- misspell
- nakedret
- prealloc
- rowserrcheck
- scopelint
- unconvert
- unparam
- whitespace
- wsl
output:
uniq-by-line: false # default true
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: doc.go
linters: lll