File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -909,11 +909,11 @@ type UseStdlibVarsSettings struct {
909909 TimeLayout bool `mapstructure:"time-layout"`
910910 CryptoHash bool `mapstructure:"crypto-hash"`
911911 DefaultRPCPath bool `mapstructure:"default-rpc-path"`
912- OSDevNull bool `mapstructure:"os-dev-null"`
912+ OSDevNull bool `mapstructure:"os-dev-null"` // Deprecated
913913 SQLIsolationLevel bool `mapstructure:"sql-isolation-level"`
914914 TLSSignatureScheme bool `mapstructure:"tls-signature-scheme"`
915915 ConstantKind bool `mapstructure:"constant-kind"`
916- SyslogPriority bool `mapstructure:"syslog-priority"`
916+ SyslogPriority bool `mapstructure:"syslog-priority"` // Deprecated
917917}
918918
919919type UnconvertSettings struct {
Original file line number Diff line number Diff line change @@ -411,11 +411,21 @@ func (l *Loader) handleLinterOptionDeprecations() {
411411
412412 // Deprecated since v1.58.0
413413 if l .cfg .LintersSettings .SlogLint .ContextOnly {
414- l .log .Warnf ("The configuration option `linters.sloglint.context-only` is deprecated, please use `linters.sloglint.context`" )
414+ l .log .Warnf ("The configuration option `linters.sloglint.context-only` is deprecated, please use `linters.sloglint.context`. " )
415415 if l .cfg .LintersSettings .SlogLint .Context == "" {
416416 l .cfg .LintersSettings .SlogLint .Context = "all"
417417 }
418418 }
419+
420+ // Deprecated since v1.51.0
421+ if l .cfg .LintersSettings .UseStdlibVars .OSDevNull {
422+ l .log .Warnf ("The configuration option `linters.usestdlibvars.os-dev-null` is deprecated." )
423+ }
424+
425+ // Deprecated since v1.51.0
426+ if l .cfg .LintersSettings .UseStdlibVars .SyslogPriority {
427+ l .log .Warnf ("The configuration option `linters.usestdlibvars.syslog-priority` is deprecated." )
428+ }
419429}
420430
421431func (l * Loader ) handleEnableOnlyOption () error {
You can’t perform that action at this time.
0 commit comments