1
1
run :
2
- timeout : 5m
2
+ concurrency : 8
3
+ timeout : 10m
4
+ issue-exit-code : 1
3
5
tests : true
4
6
skip-dirs-use-default : true
7
+ modules-download-mode : readonly
8
+ allow-parallel-runners : false
9
+ go : " "
5
10
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
8
26
9
27
linters :
28
+ fast : false
10
29
disable-all : true
11
30
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
12
60
- whitespace # Tool for detection of leading and trailing whitespace
13
61
- wsl # Forces you to use empty lines
14
62
- unconvert # Unnecessary type conversions
@@ -25,22 +73,44 @@ linters:
25
73
- importas # Enforces consistent import aliases
26
74
- gosec # Security problems
27
75
- gofmt # Whether the code was gofmt-ed
76
+ - gofumpt # Stricter gofmt
28
77
- goimports # Unused imports
29
78
- goconst # Repeated strings that could be replaced by a constant
30
- - forcetypeassert # Finds forced type assertions
31
79
- dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f())
32
- - dupl # Code clone detection
33
80
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
34
81
- 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
35
82
- unused # Checks Go code for unused constants, variables, functions and types
36
83
37
- issues :
38
- exclude-files :
39
- - tools/tools.go
40
-
41
84
linters-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
42
109
gofmt :
43
110
simplify : true
44
111
goconst :
45
112
min-len : 3
46
113
min-occurrences : 3
114
+ godot :
115
+ scope : all
116
+ period : false
0 commit comments