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 <ldez@users.noreply.github.com>
1 parent 9d5b6be commit ce9b9d6

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

.golangci.reference.yml

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

Lines changed: 12 additions & 11 deletions
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

Lines changed: 5 additions & 4 deletions
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)