chore(lint): Removed deprecated varcheck linter (#11910)
This commit is contained in:
parent
fb7a886d18
commit
aa2d4d12c7
|
|
@ -17,7 +17,6 @@ linters:
|
|||
- typecheck
|
||||
- unconvert
|
||||
- unused
|
||||
- varcheck
|
||||
|
||||
linters-settings:
|
||||
revive:
|
||||
|
|
|
|||
|
|
@ -45,14 +45,12 @@ const (
|
|||
maxPad = 255
|
||||
)
|
||||
|
||||
//nolint:varcheck // For having proper order
|
||||
const (
|
||||
roleResponder = iota + 1 // only Responders are implemented.
|
||||
roleAuthorizer
|
||||
roleFilter
|
||||
)
|
||||
|
||||
//nolint:varcheck // For having proper order
|
||||
const (
|
||||
statusRequestComplete = iota
|
||||
statusCantMultiplex
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ type Zfs struct {
|
|||
KstatMetrics []string
|
||||
PoolMetrics bool
|
||||
DatasetMetrics bool
|
||||
sysctl Sysctl //nolint:varcheck,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
|
||||
zdataset Zdataset //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: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:"-"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue