File tree Expand file tree Collapse file tree 1 file changed +91
-9
lines changed
Expand file tree Collapse file tree 1 file changed +91
-9
lines changed Original file line number Diff line number Diff line change 1+ # See: https://olegk.dev/go-linters-configuration-the-right-version
12run :
2- timeout : 120m
3+ concurrency : 4
4+ timeout : 30m
5+ issues-exit-code : 1
6+ tests : true
7+ modules-download-mode : readonly
8+ allow-parallel-runners : false
9+ go : " "
310
411linters :
12+ fast : false
13+ disable-all : true
514 enable :
15+ - asasalint
616 - asciicheck
717 - bidichk
818 - bodyclose
19+ - durationcheck
20+ - errcheck
21+ - errname
922 - errorlint
10- - exportloopref
23+ - gocritic
24+ - godot
1125 - gofmt
26+ - gofumpt
1227 - goimports
28+ - gomoddirectives
1329 - gosec
30+ - gosimple
31+ - govet
32+ - ineffassign
33+ - misspell
34+ - nakedret
35+ - nilerr
36+ - nilnil
37+ - noctx
38+ - nolintlint
39+ - prealloc
40+ - predeclared
41+ - promlinter
42+ - reassign
43+ - revive
44+ - rowserrcheck
45+ - sqlclosecheck
46+ - staticcheck
47+ - stylecheck
48+ - tenv
49+ - testableexamples
50+ - thelper
51+ - tparallel
52+ - unconvert
53+ - unparam
54+ - unused
55+ - usestdlibvars
56+ - wastedassign
57+ - whitespace
1458
1559linters-settings :
16- gosec :
17- excludes : []
18- confidence : low
19- config :
20- global :
21- audit : true
60+ gocritic :
61+ enabled-tags :
62+ - diagnostic
63+ - experimental
64+ - opinionated
65+ - performance
66+ - style
67+ disabled-checks :
68+ - hugeParam
69+ - rangeExprCopy
70+ - rangeValCopy
2271
23- issues : {}
72+ errcheck :
73+ check-type-assertions : true
74+ check-blank : true
75+ exclude-functions :
76+ - io/ioutil.ReadFile
77+ - io.Copy(*bytes.Buffer)
78+ - io.Copy(os.Stdout)
79+
80+ govet :
81+ disable :
82+ - fieldalignment
83+
84+ nakedret :
85+ # No naked returns, ever.
86+ max-func-lines : 1 # Default: 30
87+
88+ tagliatelle :
89+ case :
90+ rules :
91+ json : snake
92+ yaml : snake
93+ xml : camel
94+ bson : camel
95+ avro : snake
96+ mapstructure : kebab
2497
2598output :
99+ print-issued-lines : false
100+ print-linter-name : true
101+ path-prefix : " "
26102 sort-results : true
103+
104+ issues :
105+ max-issues-per-linter : 0
106+ max-same-issues : 0
107+ new : false
108+ fix : false
You can’t perform that action at this time.
0 commit comments