.golangci.yml raw
1 version: "2"
2 run:
3 timeout: 10m10s
4
5 issues:
6 max-issues-per-linter: 0
7 max-same-issues: 0
8
9 linters:
10 default: none
11 enable:
12 - errcheck
13 - gocritic
14 - goprintffuncname
15 - gosec
16 - govet
17 - ineffassign
18 - misspell
19 - nakedret
20 - nolintlint
21 - unconvert
22 - unused
23 - whitespace
24 settings:
25 gosec:
26 config:
27 G301: "0755"
28 exclusions:
29 rules:
30 - path: _test\.go
31 text: "Error return value of `.*` is not checked" # for intentional defer cleanup
32 - path: _test\.go
33 text: "G104: Errors unhandled" # for intentional defer cleanup
34
35 formatters:
36 enable:
37 - gofmt
38 - goimports
39
40 # don't enable:
41 # - asciicheck
42 # - depguard
43 # - dogsled
44 # - dupl
45 # - funlen
46 # - gochecknoinits
47 # - gochecknoglobals
48 # - gocognit
49 # - goconst
50 # - gocyclo
51 # - gomnd
52 # - godot
53 # - godox
54 # - goerr113
55 # - lll
56 # - prealloc
57 # - revive
58 # - stylecheck
59 # - staticcheck
60 # - structcheck
61 # - testpackage
62 # - unparam
63 # - wsl
64