-
Notifications
You must be signed in to change notification settings - Fork 351
/
.golangci.yaml
53 lines (51 loc) · 1.03 KB
/
.golangci.yaml
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
linters:
# We want to gradually introduce new linters to the project
disable-all: true
enable:
- asasalint
- asciicheck
- bidichk
- decorder
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
- exportloopref
- ginkgolinter
- gocheckcompilerdirectives
- goimports
- gosimple
- govet
- grouper
- importas
- ineffassign
- makezero
- misspell
- nakedret
- promlinter
- staticcheck
- stylecheck
- typecheck
- tagalign
- unconvert
- unused
- whitespace
# - dupl
# - cyclop
# - funlen
linters-settings:
stylecheck:
checks: ["*", "-ST1003"]
exhaustive:
check:
- switch
- map
ignore-enum-types: "ResourceName|FileMode|ProgrammingLanguage"
# - cyclop
# - funlen
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0