Skip to content

build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.20.0 to 1.21.1 #3318

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
3 changes: 3 additions & 0 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,9 @@ linters-settings:
# Suggest the use of constant.Kind.String().
# Default: false
constant-kind: true
# Suggest the use of syslog.Priority.
# Default: false
syslog-priority: true

unparam:
# Inspect exported functions.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ require (
github.com/ryanrolds/sqlclosecheck v0.3.0
github.com/sanposhiho/wastedassign/v2 v2.0.6
github.com/sashamelentyev/interfacebloat v1.1.0
github.com/sashamelentyev/usestdlibvars v1.20.0
github.com/sashamelentyev/usestdlibvars v1.21.1
github.com/securego/gosec/v2 v2.14.0
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
github.com/shirou/gopsutil/v3 v3.22.9
Expand Down
4 changes: 2 additions & 2 deletions go.sum

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

23 changes: 12 additions & 11 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,17 +652,18 @@ type TenvSettings struct {
}

type UseStdlibVarsSettings struct {
HTTPMethod bool `mapstructure:"http-method"`
HTTPStatusCode bool `mapstructure:"http-status-code"`
TimeWeekday bool `mapstructure:"time-weekday"`
TimeMonth bool `mapstructure:"time-month"`
TimeLayout bool `mapstructure:"time-layout"`
CryptoHash bool `mapstructure:"crypto-hash"`
DefaultRPCPathFlag bool `mapstructure:"default-rpc-path"`
OSDevNullFlag bool `mapstructure:"os-dev-null-flag"`
SQLIsolationLevelFlag bool `mapstructure:"sql-isolation-level-flag"`
TLSSignatureSchemeFlag bool `mapstructure:"tls-signature-scheme-flag"`
ConstantKind bool `mapstructure:"constant-kind"`
HTTPMethod bool `mapstructure:"http-method"`
HTTPStatusCode bool `mapstructure:"http-status-code"`
TimeWeekday bool `mapstructure:"time-weekday"`
TimeMonth bool `mapstructure:"time-month"`
TimeLayout bool `mapstructure:"time-layout"`
CryptoHash bool `mapstructure:"crypto-hash"`
DefaultRPCPath bool `mapstructure:"default-rpc-path"`
OSDevNull bool `mapstructure:"os-dev-null"`
SQLIsolationLevel bool `mapstructure:"sql-isolation-level"`
TLSSignatureScheme bool `mapstructure:"tls-signature-scheme"`
ConstantKind bool `mapstructure:"constant-kind"`
SyslogPriority bool `mapstructure:"syslog-priority"`
}

type UnparamSettings struct {
Expand Down
9 changes: 5 additions & 4 deletions pkg/golinters/usestdlibvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ func NewUseStdlibVars(cfg *config.UseStdlibVarsSettings) *goanalysis.Linter {
analyzer.CryptoHashFlag: cfg.CryptoHash,
analyzer.HTTPMethodFlag: cfg.HTTPMethod,
analyzer.HTTPStatusCodeFlag: cfg.HTTPStatusCode,
analyzer.OSDevNullFlag: cfg.OSDevNullFlag,
analyzer.RPCDefaultPathFlag: cfg.DefaultRPCPathFlag,
analyzer.SQLIsolationLevelFlag: cfg.SQLIsolationLevelFlag,
analyzer.OSDevNullFlag: cfg.OSDevNull,
analyzer.RPCDefaultPathFlag: cfg.DefaultRPCPath,
analyzer.SQLIsolationLevelFlag: cfg.SQLIsolationLevel,
analyzer.SyslogPriorityFlag: cfg.SyslogPriority,
analyzer.TimeLayoutFlag: cfg.TimeLayout,
analyzer.TimeMonthFlag: cfg.TimeMonth,
analyzer.TimeWeekdayFlag: cfg.TimeWeekday,
analyzer.TLSSignatureSchemeFlag: cfg.TLSSignatureSchemeFlag,
analyzer.TLSSignatureSchemeFlag: cfg.TLSSignatureScheme,
}
}

Expand Down