mirror of
https://github.com/containers/podman.git
synced 2025-06-26 21:07:02 +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
|
- golint # replaced by revive
|
||||||
- scopelint # replaced by exportloopref
|
- scopelint # replaced by exportloopref
|
||||||
- interfacer
|
- 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:
|
linters-settings:
|
||||||
errcheck:
|
errcheck:
|
||||||
check-blank: false
|
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
|
package swagger
|
||||||
|
|
||||||
import (
|
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
|
package swagger
|
||||||
|
|
||||||
import (
|
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
|
package swagger
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -27,7 +27,7 @@ type initMachine struct {
|
|||||||
memory *uint
|
memory *uint
|
||||||
now bool
|
now bool
|
||||||
timezone string
|
timezone string
|
||||||
rootful bool //nolint:unused,structcheck
|
rootful bool //nolint:unused
|
||||||
volumes []string
|
volumes []string
|
||||||
|
|
||||||
cmd []string
|
cmd []string
|
||||||
|
Reference in New Issue
Block a user