From 70d595e91d799170a5233968d937cad95e940160 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 3 Sep 2022 19:28:28 +0000 Subject: [PATCH] build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.14.0 to 1.17.1 (#3188) Co-authored-by: Fernandez Ludovic --- .golangci.reference.yml | 15 ++++++++++++--- go.mod | 4 ++-- go.sum | 7 ++++--- pkg/config/linters_settings.go | 17 ++++++++++------- pkg/golinters/usestdlibvars.go | 17 ++++++++++------- 5 files changed, 38 insertions(+), 22 deletions(-) diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 6db13d5ee450..e4ab40e1689f 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -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. diff --git a/go.mod b/go.mod index cc913f7f6898..8c5b3478d128 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index 6e1aa9003cb3..dc213a9e9647 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/pkg/config/linters_settings.go b/pkg/config/linters_settings.go index 94431ef3bae0..ec368e7d5f75 100644 --- a/pkg/config/linters_settings.go +++ b/pkg/config/linters_settings.go @@ -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 { diff --git a/pkg/golinters/usestdlibvars.go b/pkg/golinters/usestdlibvars.go index dbb6d953b2b3..56389aeecc99 100644 --- a/pkg/golinters/usestdlibvars.go +++ b/pkg/golinters/usestdlibvars.go @@ -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, } }