File tree 6 files changed +15
-12
lines changed
6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -875,6 +875,7 @@ linters-settings:
875
875
- G404 # Insecure random number source (rand)
876
876
- G405 # Detect the usage of DES or RC4
877
877
- G406 # Detect the usage of MD4 or RIPEMD160
878
+ - G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
878
879
- G501 # Import blocklist: crypto/md5
879
880
- G502 # Import blocklist: crypto/des
880
881
- G503 # Import blocklist: crypto/rc4
@@ -920,6 +921,7 @@ linters-settings:
920
921
- G404 # Insecure random number source (rand)
921
922
- G405 # Detect the usage of DES or RC4
922
923
- G406 # Detect the usage of MD4 or RIPEMD160
924
+ - G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
923
925
- G501 # Import blocklist: crypto/md5
924
926
- G502 # Import blocklist: crypto/des
925
927
- G503 # Import blocklist: crypto/rc4
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ require (
92
92
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
93
93
github.com/sashamelentyev/interfacebloat v1.1.0
94
94
github.com/sashamelentyev/usestdlibvars v1.27.0
95
- github.com/securego/gosec/v2 v2.20.1-0.20240826145712-bcec04e78483
95
+ github.com/securego/gosec/v2 v2.21.0
96
96
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
97
97
github.com/shirou/gopsutil/v3 v3.24.5
98
98
github.com/sirupsen/logrus v1.9.3
Original file line number Diff line number Diff line change 155
155
" G404" ,
156
156
" G405" ,
157
157
" G406" ,
158
+ " G407" ,
158
159
" G501" ,
159
160
" G502" ,
160
161
" G503" ,
Original file line number Diff line number Diff line change @@ -729,7 +729,7 @@ type MustTagSettings struct {
729
729
}
730
730
731
731
type NakedretSettings struct {
732
- MaxFuncLines int `mapstructure:"max-func-lines"`
732
+ MaxFuncLines uint `mapstructure:"max-func-lines"`
733
733
}
734
734
735
735
type NestifSettings struct {
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import (
9
9
)
10
10
11
11
func New (settings * config.NakedretSettings ) * goanalysis.Linter {
12
- var maxLines int
12
+ var maxLines uint
13
13
if settings != nil {
14
14
maxLines = settings .MaxFuncLines
15
15
}
16
16
17
- a := nakedret .NakedReturnAnalyzer (uint ( maxLines ) )
17
+ a := nakedret .NakedReturnAnalyzer (maxLines )
18
18
19
19
return goanalysis .NewLinter (
20
20
a .Name ,
You can’t perform that action at this time.
0 commit comments