mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00: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:
parent
6f1bc98dce
commit
59118b42b1
5 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue