-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
60 lines (57 loc) · 1.15 KB
/
Copy path.golangci.yml
File metadata and controls
60 lines (57 loc) · 1.15 KB
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
version: "2"
run:
timeout: 5m
linters:
default: none
enable:
- govet
- ineffassign
- staticcheck
- unused
- misspell
- errcheck
- gocritic
- gocyclo
- gosec
- nolintlint
settings:
gocyclo:
# goreportcard flags any function with cyclomatic complexity > 15.
# Mirror that threshold here so the local gate, CI, and the badge agree.
min-complexity: 16
errcheck:
exclude-functions:
- (*database/sql.Stmt).Close
- (*database/sql.Rows).Close
- (*database/sql.DB).Close
- (*database/sql.Tx).Rollback
- (*os.File).Close
- (*github.com/walkindude/gosymdb/store/sqlite.SQLiteStore).Close
gosec:
excludes:
- G104
- G202
- G204
- G301
- G302
- G304
- G306
- G703
nolintlint:
require-explanation: true
require-specific: true
exclusions:
rules:
- path: _test\.go
linters:
- staticcheck
- unused
- errcheck
- gosec
- gocyclo
paths:
- testbench
- testdata
formatters:
enable:
- gofmt