build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.14.0 to 1.17.1 (#3188)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
40082da345
commit
70d595e91d
@ -1699,21 +1699,30 @@ linters-settings:
|
||||
# Suggest the use of http.StatusXX
|
||||
# Default: true
|
||||
http-status-code: false
|
||||
# Suggest the use of time.Weekday
|
||||
# Suggest the use of time.Weekday.String()
|
||||
# Default: true
|
||||
time-weekday: true
|
||||
# Suggest the use of time.Month
|
||||
# Suggest the use of time.Month.String()
|
||||
# Default: false
|
||||
time-month: true
|
||||
# Suggest the use of time.Layout
|
||||
# Default: false
|
||||
time-layout: true
|
||||
# Suggest the use of crypto.Hash
|
||||
# Suggest the use of crypto.Hash.String()
|
||||
# Default: false
|
||||
crypto-hash: true
|
||||
# Suggest the use of rpc.DefaultXXPath
|
||||
# Default: false
|
||||
default-rpc-path: true
|
||||
# Suggest the use of os.DevNull
|
||||
# Default: false
|
||||
os-dev-null: true
|
||||
# Suggest the use of sql.LevelXX.String()
|
||||
# Default: false
|
||||
sql-isolation-level: true
|
||||
# Suggest the use of tls.SignatureScheme.String()
|
||||
# Default: false
|
||||
tls-signature-scheme: true
|
||||
|
||||
unparam:
|
||||
# Inspect exported functions.
|
||||
|
4
go.mod
4
go.mod
@ -76,7 +76,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.14.0
|
||||
github.com/sashamelentyev/usestdlibvars v1.17.1
|
||||
github.com/securego/gosec/v2 v2.13.1
|
||||
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
|
||||
github.com/shirou/gopsutil/v3 v3.22.8
|
||||
@ -177,7 +177,7 @@ require (
|
||||
golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
|
||||
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261 // indirect
|
||||
golang.org/x/text v0.3.7 // indirect
|
||||
google.golang.org/protobuf v1.28.0 // indirect
|
||||
gopkg.in/ini.v1 v1.66.6 // indirect
|
||||
|
7
go.sum
generated
7
go.sum
generated
@ -462,8 +462,8 @@ github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3
|
||||
github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI=
|
||||
github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw=
|
||||
github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ=
|
||||
github.com/sashamelentyev/usestdlibvars v1.14.0 h1:7wPN67PB88SQX3JTUISetLC3j6d2KCI7DtpiQx5XK3A=
|
||||
github.com/sashamelentyev/usestdlibvars v1.14.0/go.mod h1:D2Wb7niIYmTB+gB8z7kh8tyP5ccof1dQ+SFk+WW5NtY=
|
||||
github.com/sashamelentyev/usestdlibvars v1.17.1 h1:a9SrXLLCVY49g9hAEMfjpcN4sKV4SZ0rWABOAeRJBh0=
|
||||
github.com/sashamelentyev/usestdlibvars v1.17.1/go.mod h1:EuR3x44678JCCOUOLGCc6/XeU5BFEYjcFO+in3qLyLM=
|
||||
github.com/securego/gosec/v2 v2.13.1 h1:7mU32qn2dyC81MH9L2kefnQyRMUarfDER3iQyMHcjYM=
|
||||
github.com/securego/gosec/v2 v2.13.1/go.mod h1:EO1sImBMBWFjOTFzMWfTRrZW6M15gm60ljzrmy/wtHo=
|
||||
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU=
|
||||
@ -754,8 +754,9 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab h1:2QkjZIsXupsJbJIdSjjUOgWK3aEtzyuh2mPt3l/CkeU=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261 h1:v6hYoSR9T5oet+pMXwUWkbiVqx/63mlHjefrHmxwfeY=
|
||||
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
|
@ -615,13 +615,16 @@ 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"`
|
||||
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"`
|
||||
}
|
||||
|
||||
type UnparamSettings struct {
|
||||
|
@ -14,13 +14,16 @@ func NewUseStdlibVars(cfg *config.UseStdlibVarsSettings) *goanalysis.Linter {
|
||||
cfgMap := make(map[string]map[string]interface{})
|
||||
if cfg != nil {
|
||||
cfgMap[a.Name] = map[string]interface{}{
|
||||
analyzer.HTTPMethodFlag: cfg.HTTPMethod,
|
||||
analyzer.HTTPStatusCodeFlag: cfg.HTTPStatusCode,
|
||||
analyzer.TimeWeekdayFlag: cfg.TimeWeekday,
|
||||
analyzer.TimeMonthFlag: cfg.TimeMonth,
|
||||
analyzer.TimeLayoutFlag: cfg.TimeLayout,
|
||||
analyzer.CryptoHashFlag: cfg.CryptoHash,
|
||||
analyzer.DefaultRPCPathFlag: cfg.DefaultRPCPathFlag,
|
||||
analyzer.HTTPMethodFlag: cfg.HTTPMethod,
|
||||
analyzer.HTTPStatusCodeFlag: cfg.HTTPStatusCode,
|
||||
analyzer.TimeWeekdayFlag: cfg.TimeWeekday,
|
||||
analyzer.TimeMonthFlag: cfg.TimeMonth,
|
||||
analyzer.TimeLayoutFlag: cfg.TimeLayout,
|
||||
analyzer.CryptoHashFlag: cfg.CryptoHash,
|
||||
analyzer.RPCDefaultPathFlag: cfg.DefaultRPCPathFlag,
|
||||
analyzer.OSDevNullFlag: cfg.OSDevNullFlag,
|
||||
analyzer.SQLIsolationLevelFlag: cfg.SQLIsolationLevelFlag,
|
||||
analyzer.TLSSignatureSchemeFlag: cfg.TLSSignatureSchemeFlag,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user