File tree Expand file tree Collapse file tree 1 file changed +36
-40
lines changed
Expand file tree Collapse file tree 1 file changed +36
-40
lines changed Original file line number Diff line number Diff line change 11---
2- run :
3- timeout : 5m
2+ version : " 2"
43
54linters :
65 enable :
76 # Default linters
87 - errcheck
9- - gosimple
108 - govet
11- - ineffassign
129 - staticcheck
1310 - unused
1411 # Additional linters
@@ -18,8 +15,6 @@ linters:
1815 - goconst
1916 - gocritic
2017 - gocyclo
21- - gofmt
22- - goimports
2318 - gosec
2419 - misspell
2520 - nakedret
@@ -28,38 +23,39 @@ linters:
2823 - unconvert
2924 - unparam
3025 - whitespace
26+ settings :
27+ gocyclo :
28+ min-complexity : 15
29+ gocognit :
30+ min-complexity : 20
31+ dupl :
32+ threshold : 100
33+ goconst :
34+ min-len : 3
35+ min-occurrences : 3
36+ misspell :
37+ locale : US
38+ errcheck :
39+ exclude-functions :
40+ - (net/http.ResponseWriter).Write
41+ - fmt.Fprintf
42+ - (io.Closer).Close
43+ gosec :
44+ excludes :
45+ - G706
46+ revive :
47+ rules :
48+ - name : blank-imports
49+ - name : context-as-argument
50+ - name : dot-imports
51+ - name : error-return
52+ - name : error-strings
53+ - name : increment-decrement
54+ - name : var-naming
55+ - name : package-comments
56+ disabled : true
3157
32- linters-settings :
33- gocyclo :
34- min-complexity : 15
35- gocognit :
36- min-complexity : 20
37- dupl :
38- threshold : 100
39- goconst :
40- min-len : 3
41- min-occurrences : 3
42- misspell :
43- locale : US
44- revive :
45- rules :
46- - name : blank-imports
47- - name : context-as-argument
48- - name : dot-imports
49- - name : error-return
50- - name : error-strings
51- - name : exported
52- - name : increment-decrement
53- - name : var-naming
54- - name : package-comments
55- disabled : true
56-
57- issues :
58- exclude-rules :
59- # Exclude some linters from running on test files
60- - path : _test\.go
61- linters :
62- - dupl
63- - gocyclo
64- - gocognit
65- - gosec
58+ formatters :
59+ enable :
60+ - gofmt
61+ - goimports
You can’t perform that action at this time.
0 commit comments