Skip to content
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