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 {
909
909
TimeLayout bool `mapstructure:"time-layout"`
910
910
CryptoHash bool `mapstructure:"crypto-hash"`
911
911
DefaultRPCPath bool `mapstructure:"default-rpc-path"`
912
- OSDevNull bool `mapstructure:"os-dev-null"`
912
+ OSDevNull bool `mapstructure:"os-dev-null"` // Deprecated
913
913
SQLIsolationLevel bool `mapstructure:"sql-isolation-level"`
914
914
TLSSignatureScheme bool `mapstructure:"tls-signature-scheme"`
915
915
ConstantKind bool `mapstructure:"constant-kind"`
916
- SyslogPriority bool `mapstructure:"syslog-priority"`
916
+ SyslogPriority bool `mapstructure:"syslog-priority"` // Deprecated
917
917
}
918
918
919
919
type UnconvertSettings struct {
Original file line number Diff line number Diff line change @@ -411,11 +411,21 @@ func (l *Loader) handleLinterOptionDeprecations() {
411
411
412
412
// Deprecated since v1.58.0
413
413
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`. " )
415
415
if l .cfg .LintersSettings .SlogLint .Context == "" {
416
416
l .cfg .LintersSettings .SlogLint .Context = "all"
417
417
}
418
418
}
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
+ }
419
429
}
420
430
421
431
func (l * Loader ) handleEnableOnlyOption () error {
You can’t perform that action at this time.
0 commit comments