-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
63 lines (57 loc) · 1.57 KB
/
.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
54
55
56
57
58
59
60
61
62
63
linters-settings:
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 1.1
lll:
line-length: 180
funlen:
lines: 200
statements: 130
dupl:
threshold: 150
gocognit:
min-complexity: 40
errcheck:
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: false
# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: "fmt:.*,os:.*,Close"
linters:
disable:
- dupl
- maligned
- gochecknoglobals
- gomnd
- wsl
- godox
- gocyclo
- interfacer
- unconvert
issues:
exclude-rules:
- path: _test\.go
linters:
- ineffassign
- gocyclo
- errcheck
- dupl
- gosec
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude:
- should have comment or be unexported
- S1000
- ST1000
- ST1003
- ST1020
- ST1021
- G304
- G402