-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
54 lines (53 loc) · 1.09 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
linters-settings:
decorder:
# Required order of `type`, `const`, `var` and `func` declarations inside a file.
# Default: types before constants before variables before functions.
dec-order:
- type
- const
- var
- func
funlen:
# Checks the number of lines in a function.
# If lower than 0, disable the check.
lines: 120
# Checks the number of statements in a function.
# If lower than 0, disable the check.
# Default: 40
statements: 120
# Ignore comments when counting lines.
# Default false
ignore-comments: true
linters:
disable-all: true
enable:
- bodyclose
# - dupl temporary
- errcheck
- asasalint
- asciicheck
- containedctx
- contextcheck # this needs better research
- copyloopvar
- errorlint
# - funlen
- goconst
- gosec
- lll
- misspell
- nilerr
- noctx
- unconvert
# - unparam
- usestdlibvars
- whitespace
- wsl
- gci
# - unused
- ineffassign
- errcheck
- gosimple
- govet
- staticcheck
run:
issues-exit-code: 1