-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yml
59 lines (54 loc) · 1.26 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
output:
sort-results: true
print-issued-lines: false
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- gofmt
- nolintlint
- revive
- contextcheck
- dogsled
- dupword
- errname
- godox
- goimports
- nilerr
- nilnil
- nlreturn
- perfsprint
- prealloc
- sqlclosecheck
- unconvert
- whitespace
- wrapcheck
linters-settings:
govet:
enable:
- niliness
- reflectvaluecompare
- sortslice
- unusedwrite
issues:
# Print all issues reported by all linters.
max-issues-per-linter: 0
max-same-issues: 0
# Don't ignore some of the issues that golangci-lint considers okay.
# This includes documenting all exported entities.
exclude-use-default: false
exclude-rules:
# Don't need to handle errors from deferred Close calls.
- linters: [errcheck]
text: 'Error return value of `rows.Close` is not checked'
- linters: [errcheck]
text: 'Error return value of `c.dbSess.Close` is not checked'
- linters: [errcheck]
text: 'Error return value of `c.dbrSess.Close` is not checked'
- linters: [errcheck]
text: 'Error return value of `stmt.Close` is not checked'