Skip to content

Commit 13e2a56

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.20.0 to 1.21.1 (golangci#3318)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 9033e6e commit 13e2a56

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

.golangci.reference.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,9 @@ linters-settings:
18011801
# Suggest the use of constant.Kind.String().
18021802
# Default: false
18031803
constant-kind: true
1804+
# Suggest the use of syslog.Priority.
1805+
# Default: false
1806+
syslog-priority: true
18041807

18051808
unparam:
18061809
# Inspect exported functions.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ require (
7979
github.com/ryanrolds/sqlclosecheck v0.3.0
8080
github.com/sanposhiho/wastedassign/v2 v2.0.6
8181
github.com/sashamelentyev/interfacebloat v1.1.0
82-
github.com/sashamelentyev/usestdlibvars v1.20.0
82+
github.com/sashamelentyev/usestdlibvars v1.21.1
8383
github.com/securego/gosec/v2 v2.14.0
8484
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c
8585
github.com/shirou/gopsutil/v3 v3.22.9

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

+12-11
Original file line numberDiff line numberDiff line change
@@ -652,17 +652,18 @@ type TenvSettings struct {
652652
}
653653

654654
type UseStdlibVarsSettings struct {
655-
HTTPMethod bool `mapstructure:"http-method"`
656-
HTTPStatusCode bool `mapstructure:"http-status-code"`
657-
TimeWeekday bool `mapstructure:"time-weekday"`
658-
TimeMonth bool `mapstructure:"time-month"`
659-
TimeLayout bool `mapstructure:"time-layout"`
660-
CryptoHash bool `mapstructure:"crypto-hash"`
661-
DefaultRPCPathFlag bool `mapstructure:"default-rpc-path"`
662-
OSDevNullFlag bool `mapstructure:"os-dev-null-flag"`
663-
SQLIsolationLevelFlag bool `mapstructure:"sql-isolation-level-flag"`
664-
TLSSignatureSchemeFlag bool `mapstructure:"tls-signature-scheme-flag"`
665-
ConstantKind bool `mapstructure:"constant-kind"`
655+
HTTPMethod bool `mapstructure:"http-method"`
656+
HTTPStatusCode bool `mapstructure:"http-status-code"`
657+
TimeWeekday bool `mapstructure:"time-weekday"`
658+
TimeMonth bool `mapstructure:"time-month"`
659+
TimeLayout bool `mapstructure:"time-layout"`
660+
CryptoHash bool `mapstructure:"crypto-hash"`
661+
DefaultRPCPath bool `mapstructure:"default-rpc-path"`
662+
OSDevNull bool `mapstructure:"os-dev-null"`
663+
SQLIsolationLevel bool `mapstructure:"sql-isolation-level"`
664+
TLSSignatureScheme bool `mapstructure:"tls-signature-scheme"`
665+
ConstantKind bool `mapstructure:"constant-kind"`
666+
SyslogPriority bool `mapstructure:"syslog-priority"`
666667
}
667668

668669
type UnparamSettings struct {

pkg/golinters/usestdlibvars.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ func NewUseStdlibVars(cfg *config.UseStdlibVarsSettings) *goanalysis.Linter {
1818
analyzer.CryptoHashFlag: cfg.CryptoHash,
1919
analyzer.HTTPMethodFlag: cfg.HTTPMethod,
2020
analyzer.HTTPStatusCodeFlag: cfg.HTTPStatusCode,
21-
analyzer.OSDevNullFlag: cfg.OSDevNullFlag,
22-
analyzer.RPCDefaultPathFlag: cfg.DefaultRPCPathFlag,
23-
analyzer.SQLIsolationLevelFlag: cfg.SQLIsolationLevelFlag,
21+
analyzer.OSDevNullFlag: cfg.OSDevNull,
22+
analyzer.RPCDefaultPathFlag: cfg.DefaultRPCPath,
23+
analyzer.SQLIsolationLevelFlag: cfg.SQLIsolationLevel,
24+
analyzer.SyslogPriorityFlag: cfg.SyslogPriority,
2425
analyzer.TimeLayoutFlag: cfg.TimeLayout,
2526
analyzer.TimeMonthFlag: cfg.TimeMonth,
2627
analyzer.TimeWeekdayFlag: cfg.TimeWeekday,
27-
analyzer.TLSSignatureSchemeFlag: cfg.TLSSignatureSchemeFlag,
28+
analyzer.TLSSignatureSchemeFlag: cfg.TLSSignatureScheme,
2829
}
2930
}
3031

0 commit comments

Comments
 (0)