mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
golangci-lint: remove three deprecated linters
golangci-lint is throwing warnings on each run: WARN [runner] The linter 'xxxxx' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. ...for xxxxx in deadcode, structcheck, varcheck. Add those three to the deprecated-linter list, and remove any exceptions from the code base. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -62,6 +62,9 @@ linters:
|
||||
- golint # replaced by revive
|
||||
- scopelint # replaced by exportloopref
|
||||
- interfacer
|
||||
- deadcode # deprecated since v1.49.0, replaced by unused
|
||||
- structcheck # deprecated since v1.49.0, replaced by unused
|
||||
- varcheck # deprecated since v1.49.0, replaced by unused
|
||||
linters-settings:
|
||||
errcheck:
|
||||
check-blank: false
|
||||
|
@ -1,4 +1,4 @@
|
||||
//nolint:deadcode,unused // these types are used to wire generated swagger to API code
|
||||
//nolint:unused // these types are used to wire generated swagger to API code
|
||||
package swagger
|
||||
|
||||
import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
//nolint:deadcode,unused // these types are used to wire generated swagger to API code
|
||||
//nolint:unused // these types are used to wire generated swagger to API code
|
||||
package swagger
|
||||
|
||||
import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
//nolint:deadcode,unused // these types are used to wire generated swagger to API code
|
||||
//nolint:unused // these types are used to wire generated swagger to API code
|
||||
package swagger
|
||||
|
||||
import (
|
||||
|
@ -27,7 +27,7 @@ type initMachine struct {
|
||||
memory *uint
|
||||
now bool
|
||||
timezone string
|
||||
rootful bool //nolint:unused,structcheck
|
||||
rootful bool //nolint:unused
|
||||
volumes []string
|
||||
|
||||
cmd []string
|
||||
|
Reference in New Issue
Block a user