-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
53 lines (49 loc) · 993 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
42
43
44
45
46
47
48
49
50
51
52
53
linters:
disable-all: true
enable:
- errcheck
- golint
- ineffassign
- unconvert
- misspell
- govet
- unused
- deadcode
- goconst
- gosec
linters-settings:
gocyclo:
min-complexity: 11
errcheck:
ignore: fmt:.*,io/ioutil:^Read.*,github.com/spf13/cobra:MarkFlagRequired,github.com/spf13/viper:BindPFlag
golint:
min-confidence: 1.1
run:
tests: false
concurrency: 2
timeout: 1m
issues-exit-code: 1
skip-dirs-use-default: true
modules-download-mode: readonly
allow-parallel-runners: false
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
path-prefix: ""
issues:
exclude-rules:
- path: tests\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- linters:
- lll
source: "^//go:generate "
exclude-use-default: false
exclude-case-sensitive: false
max-issues-per-linter: 0
max-same-issues: 0