forked from imbuba/utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
35 lines (34 loc) · 1.11 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
linters:
enable-all: true
disable:
- lll
- gochecknoinits # в каких-то пакетах от init наверно и вправду стоит избаляться
- gochecknoglobals # а как без них)
- godox
disable-all: false
fast: false
linters-settings:
errcheck:
check-type-assertions: false # по хорошему приведения типов тоже проверять надо
check-blank: false
govet:
check-shadowing: true
gocyclo:
min-complexity: 15
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
dupl:
# tokens count to trigger issue, 150 by default
threshold: 100
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.
# Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# True by default.
simple: true
range-loops: true
for-loops: false
goconst:
min-len: 2
min-occurrences: 2