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 <ldez@users.noreply.github.com>
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonschema/golangci.next.jsonschema.json

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)