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
- unconvert
- unused
- varcheck
linters-settings:
revive:

View File

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

View File

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