-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.golangci.yml
52 lines (49 loc) · 1.38 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
# Options for analysis running
# More info could be found at https://golangci-lint.run/usage/configuration/
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
modules-download-mode: readonly
# List of useful linters could be found at /~https://github.com/golangci/awesome-go-linters
linters:
disable-all: true
enable:
- errcheck
- copyloopvar
# - depguard
# - gci
- gofumpt
- goimports
- gosimple
- govet
- ineffassign
- makezero
- misspell
- noctx
- nolintlint
# - revive
- rowserrcheck
- sqlclosecheck
- staticcheck
# - stylecheck
- unconvert
- unused
- wastedassign
- gosec
linters-settings:
staticcheck:
# https://staticcheck.io/docs/options#checks
checks: [ "all","-SA1019","-SA1029" ]
gosec:
excludes: ["G204", "G301", "G302", "G304", "G306", "G601", "G101", "G407"]
exclude-generated: true
exclude-test-files: true
config:
global:
nosec: true
issues:
exclude-use-default: false
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0