Skip to content

Commit 6c99fb5

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump github.com/securego/gosec/v2 from 2.20.1-0.20240826145712-bcec04e78483 to 2.21.0 (golangci#4981)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 81ad620 commit 6c99fb5

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

.golangci.next.reference.yml

+2
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ linters-settings:
875875
- G404 # Insecure random number source (rand)
876876
- G405 # Detect the usage of DES or RC4
877877
- G406 # Detect the usage of MD4 or RIPEMD160
878+
- G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
878879
- G501 # Import blocklist: crypto/md5
879880
- G502 # Import blocklist: crypto/des
880881
- G503 # Import blocklist: crypto/rc4
@@ -920,6 +921,7 @@ linters-settings:
920921
- G404 # Insecure random number source (rand)
921922
- G405 # Detect the usage of DES or RC4
922923
- G406 # Detect the usage of MD4 or RIPEMD160
924+
- G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
923925
- G501 # Import blocklist: crypto/md5
924926
- G502 # Import blocklist: crypto/des
925927
- G503 # Import blocklist: crypto/rc4

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ require (
9292
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
9393
github.com/sashamelentyev/interfacebloat v1.1.0
9494
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
9696
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
9797
github.com/shirou/gopsutil/v3 v3.24.5
9898
github.com/sirupsen/logrus v1.9.3

go.sum

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonschema/golangci.next.jsonschema.json

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
"G404",
156156
"G405",
157157
"G406",
158+
"G407",
158159
"G501",
159160
"G502",
160161
"G503",

pkg/config/linters_settings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ type MustTagSettings struct {
729729
}
730730

731731
type NakedretSettings struct {
732-
MaxFuncLines int `mapstructure:"max-func-lines"`
732+
MaxFuncLines uint `mapstructure:"max-func-lines"`
733733
}
734734

735735
type NestifSettings struct {

pkg/golinters/nakedret/nakedret.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
)
1010

1111
func New(settings *config.NakedretSettings) *goanalysis.Linter {
12-
var maxLines int
12+
var maxLines uint
1313
if settings != nil {
1414
maxLines = settings.MaxFuncLines
1515
}
1616

17-
a := nakedret.NakedReturnAnalyzer(uint(maxLines))
17+
a := nakedret.NakedReturnAnalyzer(maxLines)
1818

1919
return goanalysis.NewLinter(
2020
a.Name,

0 commit comments

Comments
 (0)