-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.golangci.yml
40 lines (35 loc) · 886 Bytes
/
.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
# cSpell: disable
run:
skipdirs:
- try
linters:
enable:
- gocyclo
- gofmt
- goimports
- gofumpt
- revive
- misspell
- prealloc
- stylecheck
- unconvert
- unparam
linters-settings:
gocyclo:
min-complexity: 20
revive:
rules:
- name: "superfluous-else"
disabled: true
gofumpt:
extra-rules: true
issues:
# disable default rule suppressions,
# esp. for the "exported methods must have a comment" bit
exclude-use-default: false
# emit more hits to the same linter rule at once than the default
max-same-issues: 10
# ... but we need to turn some back on
exclude:
# errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
- "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv). is not checked"