chore(lint): Removed deprecated varcheck linter (#11910)

This commit is contained in:
Thomas Casteleyn 2022-09-30 15:26:10 +02:00 committed by GitHub
parent fb7a886d18
commit aa2d4d12c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -17,7 +17,6 @@ linters:
- typecheck - typecheck
- unconvert - unconvert
- unused - unused
- varcheck
linters-settings: linters-settings:
revive: revive:

View File

@ -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

View File

@ -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:"-"`
} }