chore(lint): Removed deprecated varcheck linter (#11910)
This commit is contained in:
parent
fb7a886d18
commit
aa2d4d12c7
|
|
@ -17,7 +17,6 @@ linters:
|
||||||
- typecheck
|
- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
revive:
|
revive:
|
||||||
|
|
|
||||||
|
|
@ -45,14 +45,12 @@ const (
|
||||||
maxPad = 255
|
maxPad = 255
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:varcheck // For having proper order
|
|
||||||
const (
|
const (
|
||||||
roleResponder = iota + 1 // only Responders are implemented.
|
roleResponder = iota + 1 // only Responders are implemented.
|
||||||
roleAuthorizer
|
roleAuthorizer
|
||||||
roleFilter
|
roleFilter
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:varcheck // For having proper order
|
|
||||||
const (
|
const (
|
||||||
statusRequestComplete = iota
|
statusRequestComplete = iota
|
||||||
statusCantMultiplex
|
statusCantMultiplex
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ type Zfs struct {
|
||||||
KstatMetrics []string
|
KstatMetrics []string
|
||||||
PoolMetrics bool
|
PoolMetrics bool
|
||||||
DatasetMetrics bool
|
DatasetMetrics bool
|
||||||
sysctl Sysctl //nolint:varcheck,unused // False positive - this var is used for non-default build tag: freebsd
|
sysctl Sysctl //nolint:unused // False positive - this var is used for non-default build tag: freebsd
|
||||||
zpool Zpool //nolint:varcheck,unused // False positive - this var is used for non-default build tag: freebsd
|
zpool Zpool //nolint:unused // False positive - this var is used for non-default build tag: freebsd
|
||||||
zdataset Zdataset //nolint:varcheck,unused // False positive - this var is used for non-default build tag: freebsd
|
zdataset Zdataset //nolint:unused // False positive - this var is used for non-default build tag: freebsd
|
||||||
Log telegraf.Logger `toml:"-"`
|
Log telegraf.Logger `toml:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue