...
1run:
2 timeout: 5m
3
4linters-settings:
5 gci:
6 sections:
7 - standard
8 - default
9 - prefix(github.com/spf13/viper)
10 gocritic:
11 # Enable multiple checks by tags. See "Tags" section in https://github.com/go-critic/go-critic#usage.
12 enabled-tags:
13 - diagnostic
14 - experimental
15 - opinionated
16 - style
17 disabled-checks:
18 - importShadow
19 - unnamedResult
20 golint:
21 min-confidence: 0
22 goimports:
23 local-prefixes: github.com/spf13/viper
24
25linters:
26 disable-all: true
27 enable:
28 - bodyclose
29 - dogsled
30 - dupl
31 - durationcheck
32 - exhaustive
33 - exportloopref
34 - gci
35 - gocritic
36 - godot
37 - gofmt
38 - gofumpt
39 - goimports
40 - gomoddirectives
41 - goprintffuncname
42 - govet
43 - importas
44 - ineffassign
45 - makezero
46 - misspell
47 - nakedret
48 - nilerr
49 - noctx
50 - nolintlint
51 - prealloc
52 - predeclared
53 - revive
54 - rowserrcheck
55 - sqlclosecheck
56 - staticcheck
57 - stylecheck
58 - tparallel
59 - typecheck
60 - unconvert
61 - unparam
62 - unused
63 - wastedassign
64 - whitespace
65
66 # fixme
67 # - cyclop
68 # - errcheck
69 # - errorlint
70 # - exhaustivestruct
71 # - forbidigo
72 # - forcetypeassert
73 # - gochecknoglobals
74 # - gochecknoinits
75 # - gocognit
76 # - goconst
77 # - gocyclo
78 # - gosec
79 # - gosimple
80 # - ifshort
81 # - lll
82 # - nlreturn
83 # - paralleltest
84 # - scopelint
85 # - thelper
86 # - wrapcheck
87
88 # unused
89 # - depguard
90 # - goheader
91 # - gomodguard
92
93 # deprecated
94 # - deadcode
95 # - structcheck
96 # - varcheck
97
98 # don't enable:
99 # - asciicheck
100 # - funlen
101 # - godox
102 # - goerr113
103 # - gomnd
104 # - interfacer
105 # - maligned
106 # - nestif
107 # - testpackage
108 # - wsl
View as plain text