11run :
2- timeout : 5m
2+ concurrency : 8
3+ timeout : 10m
4+ issue-exit-code : 1
35 tests : true
46 skip-dirs-use-default : true
7+ modules-download-mode : readonly
8+ allow-parallel-runners : false
9+ go : " "
510
6- service :
7- golangci-lint-version : latest
11+ output :
12+ uniq-by-line : false
13+ path-prefix : " "
14+ sort-results : true
15+
16+ issues :
17+ max-issues-per-linter : 0
18+ max-same-issues : 0
19+ new : false
20+ fix : false
21+ exclude-rules :
22+ - path : (.+)_test.go
23+ linters :
24+ - nilnil
25+ - gosec
826
927linters :
28+ fast : false
1029 disable-all : true
1130 enable :
31+ - asasalint # Check for pass []any as any in variadic func(...any)
32+ - asciicheck # Detects funky ASCII characters
33+ - bidichk # Checks for dangerous unicode character sequences
34+ - durationcheck # Check for two durations multiplied together
35+ - errcheck # Forces to not skip error check
36+ - exportloopref # Checks for pointers to enclosing loop variables
37+ - gocritic # Bundles different linting checks
38+ - godot # Checks for periods at the end of comments
39+ - gomoddirectives # Allow or ban replace directives in go.mod
40+ - gosimple # Code simplification
41+ - govet # Official Go tool
42+ - ineffassign # Detects when assignments to existing variables are not used
43+ - nakedret # Finds naked/bare returns and requires change them
44+ - nilerr # Requires explicit returns
45+ - nilnil # Requires explicit returns
46+ - promlinter # Lints Prometheus metrics names
47+ - reassign # Checks that package variables are not reassigned
48+ - revive # Drop-in replacement for golint
49+ - tenv # Detects using os.Setenv instead of t.Setenv
50+ - testableexamples # Checks if examples are testable (have expected output)
51+ - unparam # Finds unused params
52+ - usestdlibvars # Detects the possibility to use variables/constants from stdlib
53+ - wastedassign # Finds wasted assignment statements
54+ - loggercheck # Checks the odd number of key and value pairs for common logger libraries
55+ - nestif # Finds deeply nested if statements
56+ - nonamedreturns # Reports all named returns
57+ - decorder # Check declaration order of types, consts, vars and funcs
58+ - gocheckcompilerdirectives # Checks that compiler directive comments (//go:) are valid
59+ - gochecknoinits # Checks for init methods
1260 - whitespace # Tool for detection of leading and trailing whitespace
1361 - wsl # Forces you to use empty lines
1462 - unconvert # Unnecessary type conversions
@@ -25,22 +73,44 @@ linters:
2573 - importas # Enforces consistent import aliases
2674 - gosec # Security problems
2775 - gofmt # Whether the code was gofmt-ed
76+ - gofumpt # Stricter gofmt
2877 - goimports # Unused imports
2978 - goconst # Repeated strings that could be replaced by a constant
30- - forcetypeassert # Finds forced type assertions
3179 - dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f())
32- - dupl # Code clone detection
3380 - errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
3481 - errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13
3582 - unused # Checks Go code for unused constants, variables, functions and types
3683
37- issues :
38- exclude-files :
39- - tools/tools.go
40-
4184linters-settings :
85+ gocritic :
86+ enabled-tags :
87+ - diagnostic
88+ - experimental
89+ - opinionated
90+ - performance
91+ - style
92+ disabled-checks :
93+ - hugeParam
94+ - rangeExprCopy
95+ - rangeValCopy
96+ - importShadow
97+ - unnamedResult
98+ errcheck :
99+ check-type-assertions : false
100+ check-blank : true
101+ exclude-functions :
102+ - io/ioutil.ReadFile
103+ - io.Copy(*bytes.Buffer)
104+ - io.Copy(os.Stdout)
105+ nakedret :
106+ max-func-lines : 1
107+ govet :
108+ enable-all : true
42109 gofmt :
43110 simplify : true
44111 goconst :
45112 min-len : 3
46113 min-occurrences : 3
114+ godot :
115+ scope : all
116+ period : false
0 commit comments