Skip to content

build(deps): bump github.com/securego/gosec/v2 from 2.20.1-0.20240826145712-bcec04e78483 to 2.21.0 #4981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ linters-settings:
- G404 # Insecure random number source (rand)
- G405 # Detect the usage of DES or RC4
- G406 # Detect the usage of MD4 or RIPEMD160
- G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
- G501 # Import blocklist: crypto/md5
- G502 # Import blocklist: crypto/des
- G503 # Import blocklist: crypto/rc4
Expand Down Expand Up @@ -920,6 +921,7 @@ linters-settings:
- G404 # Insecure random number source (rand)
- G405 # Detect the usage of DES or RC4
- G406 # Detect the usage of MD4 or RIPEMD160
- G407 # Detect the usage of hardcoded Initialization Vector(IV)/Nonce
- G501 # Import blocklist: crypto/md5
- G502 # Import blocklist: crypto/des
- G503 # Import blocklist: crypto/rc4
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ require (
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
github.com/sashamelentyev/interfacebloat v1.1.0
github.com/sashamelentyev/usestdlibvars v1.27.0
github.com/securego/gosec/v2 v2.20.1-0.20240826145712-bcec04e78483
github.com/securego/gosec/v2 v2.21.0
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
github.com/shirou/gopsutil/v3 v3.24.5
github.com/sirupsen/logrus v1.9.3
Expand Down
16 changes: 8 additions & 8 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
"G404",
"G405",
"G406",
"G407",
"G501",
"G502",
"G503",
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ type MustTagSettings struct {
}

type NakedretSettings struct {
MaxFuncLines int `mapstructure:"max-func-lines"`
MaxFuncLines uint `mapstructure:"max-func-lines"`
}

type NestifSettings struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/golinters/nakedret/nakedret.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
)

func New(settings *config.NakedretSettings) *goanalysis.Linter {
var maxLines int
var maxLines uint
if settings != nil {
maxLines = settings.MaxFuncLines
}

a := nakedret.NakedReturnAnalyzer(uint(maxLines))
a := nakedret.NakedReturnAnalyzer(maxLines)

return goanalysis.NewLinter(
a.Name,
Expand Down
Loading