1+ version : " 2"
12output :
2- # Format: colored-line-number|line-number|json|colored-tab|tab|checkstyle|code-climate|junit-xml|github-actions|teamcity
3- #
4- # Multiple can be specified by separating them by comma, output can be provided
5- # for each of them by separating format name and path by colon symbol.
6- # Output path can be either `stdout`, `stderr` or path to the file to write to.
7- # Example: "checkstyle:report.xml,json:stdout,colored-line-number"
8- #
9- # Default: colored-line-number
10- format : checkstyle:report.xml,colored-line-number
11- # Print lines of code with issue.
12- # Default: true
13- print-issued-lines : true
14- # Print linter name in the end of issue text.
15- # Default: true
16- print-linter-name : true
17- # Make issues output unique by line.
18- # Default: true
19- uniq-by-line : false
20- # Add a prefix to the output file references.
21- # Default is no prefix.
223 path-prefix : " "
23- # Sort results by: filepath, line and column.
24- sort-results : true
25-
264linters :
27- disable-all : true
5+ default : none
286 enable :
297 - asasalint
308 - asciicheck
@@ -43,14 +21,9 @@ linters:
4321 - errchkjson
4422 - errname
4523 - errorlint
46- - execinquery
4724 - exhaustive
4825 - exhaustruct
49- - exportloopref
50- # - forbidigo
5126 - forcetypeassert
52- # - funlen
53- # - gci
5427 - ginkgolinter
5528 - gocheckcompilerdirectives
5629 - gochecknoglobals
@@ -62,17 +35,11 @@ linters:
6235 - gocyclo
6336 - godot
6437 - godox
65- # - goerr113
66- - gofmt
67- # - gofumpt
6838 - goheader
69- - goimports
70- - gomnd
7139 - gomoddirectives
7240 - gomodguard
7341 - goprintffuncname
74- # - gosec
75- - gosimple
42+ - gosec
7643 - gosmopolitan
7744 - govet
7845 - grouper
@@ -86,10 +53,12 @@ linters:
8653 - makezero
8754 - mirror
8855 - misspell
56+ - mnd
8957 - musttag
9058 - nakedret
9159 - nestif
9260 - nilerr
61+ - nilnesserr
9362 - nilnil
9463 - nlreturn
9564 - noctx
@@ -103,64 +72,71 @@ linters:
10372 - promlinter
10473 - protogetter
10574 - reassign
75+ - recvcheck
10676 - revive
10777 - rowserrcheck
10878 - sloglint
79+ - spancheck
10980 - sqlclosecheck
11081 - staticcheck
111- - stylecheck
112- - tagalign
113- # - tagliatelle
114- - tenv
11582 - testableexamples
11683 - testifylint
117- # - testpackage
11884 - thelper
11985 - tparallel
120- - typecheck
12186 - unconvert
12287 - unparam
12388 - unused
12489 - usestdlibvars
125- # - varnamelen
12690 - wastedassign
12791 - whitespace
128- # - wrapcheck
12992 - wsl
13093 - zerologlint
131- presets :
132- - bugs
133-
134- linters-settings :
135- tagliatelle :
136- # Check the struck tag name case.
137- case :
138- # Use the struct field name to check the name of the struct tag.
139- # Default: false
140- use-field-name : true
94+ settings :
95+ depguard :
14196 rules :
142- # Any struct tag type can be used.
143- # Support string case: `camel`, `pascal`, `kebab`, `snake`, `upperSnake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`, `header`.
144- json : snake
145- yaml : snake
146- xml : camel
147- toml : camel
148-
149- depguard :
150- rules :
151- main :
152- files :
153- - " !$test"
154- deny :
155- - pkg : " github.com/pkg/errors"
156- desc : Should be replaced by standard lib errors package
157- test :
158- files :
159- - " $test"
160- allow :
161- - $gostd
162- - github.com/stretchr/testify
163- - github.com/kdudkov/goatak
164- paralleltest :
165- ignore-missing : true
166- ignore-missing-subtests : false
97+ main :
98+ files :
99+ - ' !$test'
100+ deny :
101+ - pkg : github.com/pkg/errors
102+ desc : Should be replaced by standard lib errors package
103+ test :
104+ files :
105+ - $test
106+ allow :
107+ - $gostd
108+ - github.com/stretchr/testify
109+ - gopkg.in/yaml.v3
110+ - github.com/kdudkov/goatak
111+ paralleltest :
112+ ignore-missing : true
113+ ignore-missing-subtests : false
114+ tagliatelle :
115+ case :
116+ rules :
117+ json : snake
118+ toml : camel
119+ xml : camel
120+ yaml : snake
121+ use-field-name : true
122+ exclusions :
123+ generated : lax
124+ presets :
125+ - comments
126+ - common-false-positives
127+ - legacy
128+ - std-error-handling
129+ paths :
130+ - third_party$
131+ - builtin$
132+ - examples$
133+ formatters :
134+ enable :
135+ - gofmt
136+ - goimports
137+ exclusions :
138+ generated : lax
139+ paths :
140+ - third_party$
141+ - builtin$
142+ - examples$
0 commit comments