Skip to content

Commit ce9b9d6

Browse files
build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.20.0 to 1.21.1 (#3318)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 9d5b6be commit ce9b9d6

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
@@ -1776,6 +1776,9 @@ linters-settings:
17761776
# Suggest the use of constant.Kind.String().
17771777
# Default: false
17781778
constant-kind: true
1779+
# Suggest the use of syslog.Priority.
1780+
# Default: false
1781+
syslog-priority: true
17791782

17801783
unparam:
17811784
# 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)