-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci-lint.yml
91 lines (81 loc) · 1.62 KB
/
.golangci-lint.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
run:
timeout: 10m
skip-dirs:
- mocks
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- opinionated
- performance
- style
disabled-checks:
- unnamedResult
exhaustive:
# check switch statements in generated files also
check-generated: false
# indicates that switch statements are to be considered exhaustive if a
# 'default' case is present, even if all enum members aren't listed in the
# switch
default-signifies-exhaustive: true
godox:
# report any comments starting with keywords, this is useful for TODO or FIXME comments that
# might be left in the code accidentally and should be resolved before merging
keywords:
- todo
- fixme
govet:
check-shadowing: true
fieldalignment: true
lll:
line-length: 120
tab-width: 1
funlen:
lines: 100
statements: 45
linters:
disable-all: true
enable:
- gofmt
- goimports
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- structcheck
- varcheck
- prealloc
- gocritic
- unconvert
- whitespace
- unused
- misspell
- staticcheck
- wsl
- revive
- nestif
- godox
- godot
- gocognit
- asciicheck
- unparam
- typecheck
- stylecheck
- rowserrcheck
- nolintlint
- noctx
- nakedret
- gosec
- gocyclo
- goconst
- gochecknoinits
- funlen
- exhaustive
- exportloopref
- dupl
- dogsled
- depguard
- bodyclose
service:
golangci-lint-version: 1.42.x # use a fixed version to avoid introducing unexpected linters