11# Code generated by gen-lint. DO NOT EDIT.
22
3+ version : " 2"
4+
35run :
46 timeout : 5m
57
68issues :
79 # 显示所有 issue
810 max-issues-per-linter : 0
911 max-same-issues : 0
10- exclude-use-default : false
12+
13+ formatters :
14+ # 必须在enable打开才能用
15+ enable :
16+ - gofmt
17+ - gci
18+
19+ settings :
20+ gci :
21+ sections :
22+ - standard
23+ - default
24+ - prefix(github.com/ifooth/devcontainer)
1125
1226linters :
13- disable-all : true
1427 enable :
1528 # enable by default
1629 - errcheck
@@ -21,65 +34,55 @@ linters:
2134 - unused
2235
2336 # custom
24- - gci
2537 - goconst
26- - gofmt
2738 - goheader
28- - goimports
2939 - gosec
3040 - misspell
3141 - nakedret
3242 - revive
3343 - unconvert
3444 - unparam
3545
36- linters-settings :
37- # 只开启特定的规则
38- errcheck :
39- exclude-functions :
40- - (*os.File).Close
41- - (io.Closer).Close
42- - (net/http.ResponseWriter).Write
43- - io.Copy
44- - os.RemoveAll
45- govet :
46- enable :
47- - shadow
48- goimports :
49- local-prefixes : github.com/ifooth/devcontainer
50- gci :
51- sections :
52- - standard
53- - default
54- - prefix(github.com/ifooth/devcontainer)
55- gosec :
56- includes :
57- - G201 # SQL query construction using format string
58- - G202 # SQL query construction using string concatenation
59- - G101 # Look for hard coded credentials
60- - G401 # Detect the usage of DES, RC4, MD5 or SHA1
61- - G402 # Look for bad TLS connection settings
62- - G403 # Ensure minimum RSA key length of 2048 bits
63- - G404 # Insecure random number source (rand)
64- - G504 # Import blocklist: net/http/cgi
65- misspell :
66- locale : US
67- revive :
68- rules :
69- - name : line-length-limit
70- arguments :
71- - 160
72- - name : function-length
73- arguments :
74- - 80 # statements
75- - 120 # lines
76- - name : cyclomatic
77- arguments :
78- - 30
79- - name : use-any
80- - name : early-return
81- - name : exported
82- arguments :
83- - checkPrivateReceivers
84- - sayRepetitiveInsteadOfStutters
85- - name : package-comments
46+ settings :
47+ # 只开启特定的规则
48+ errcheck :
49+ exclude-functions :
50+ - (*os.File).Close
51+ - (io.Closer).Close
52+ - (net/http.ResponseWriter).Write
53+ - io.Copy
54+ - os.RemoveAll
55+ govet :
56+ enable :
57+ - shadow
58+ gosec :
59+ includes :
60+ - G201 # SQL query construction using format string
61+ - G202 # SQL query construction using string concatenation
62+ - G101 # Look for hard coded credentials
63+ - G401 # Detect the usage of DES, RC4, MD5 or SHA1
64+ - G402 # Look for bad TLS connection settings
65+ - G403 # Ensure minimum RSA key length of 2048 bits
66+ - G404 # Insecure random number source (rand)
67+ - G504 # Import blocklist: net/http/cgi
68+ misspell :
69+ locale : US
70+ revive :
71+ rules :
72+ - name : line-length-limit
73+ arguments :
74+ - 160
75+ - name : function-length
76+ arguments :
77+ - 80 # statements
78+ - 120 # lines
79+ - name : cyclomatic
80+ arguments :
81+ - 30
82+ - name : use-any
83+ - name : early-return
84+ - name : exported
85+ arguments :
86+ - checkPrivateReceivers
87+ - sayRepetitiveInsteadOfStutters
88+ - name : package-comments
0 commit comments