File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,6 @@ linters-settings:
876
876
- G404 # Insecure random number source (rand)
877
877
- G405 # Detect the usage of DES or RC4
878
878
- G406 # Detect the usage of MD4 or RIPEMD160
879
- - G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
880
879
- G501 # Import blocklist: crypto/md5
881
880
- G502 # Import blocklist: crypto/des
882
881
- G503 # Import blocklist: crypto/rc4
@@ -922,7 +921,6 @@ linters-settings:
922
921
- G404 # Insecure random number source (rand)
923
922
- G405 # Detect the usage of DES or RC4
924
923
- G406 # Detect the usage of MD4 or RIPEMD160
925
- - G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
926
924
- G501 # Import blocklist: crypto/md5
927
925
- G502 # Import blocklist: crypto/des
928
926
- G503 # Import blocklist: crypto/rc4
Original file line number Diff line number Diff line change 155
155
" G404" ,
156
156
" G405" ,
157
157
" G406" ,
158
- " G407" ,
159
158
" G501" ,
160
159
" G502" ,
161
160
" G503" ,
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ func New(settings *config.GoSecSettings) *goanalysis.Linter {
33
33
var ruleFilters []rules.RuleFilter
34
34
var analyzerFilters []analyzers.AnalyzerFilter
35
35
if settings != nil {
36
+ // TODO(ldez) to remove when the problem will be fixed by gosec.
37
+ // https://github.com/securego/gosec/issues/1211
38
+ // https://github.com/securego/gosec/issues/1209
39
+ settings .Excludes = append (settings .Excludes , "G407" )
40
+
36
41
ruleFilters = createRuleFilters (settings .Includes , settings .Excludes )
37
42
analyzerFilters = createAnalyzerFilters (settings .Includes , settings .Excludes )
38
43
conf = toGosecConfig (settings )
You can’t perform that action at this time.
0 commit comments