forked from princjef/gomarkdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
41 lines (36 loc) · 845 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
41
linters:
enable:
- bodyclose
- gochecknoinits
- gocritic
- gocyclo
- goimports
- govet
- lll
- misspell
- revive
- unconvert
linters-settings:
gocyclo:
min-complexity: 15
lll:
tab-width: 4
nakedret:
max-func-lines: 10
revive:
min-confidence: 0.5
issues:
exclude-rules:
# Exclude assertion lines in tests from line length
- path: "_test\\.go"
linters:
- lll
source: "^\\s*is."
# Exclude documentation files from line length
- path: "doc\\.go"
linters:
- lll
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
exclude-use-default: false