diff --git a/.golangci.yml b/.golangci.yml index cf0c2279d0..d98d1c409f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 diff --git a/pkg/api/handlers/swagger/errors.go b/pkg/api/handlers/swagger/errors.go index 28e11c9fba..18308d1b7b 100644 --- a/pkg/api/handlers/swagger/errors.go +++ b/pkg/api/handlers/swagger/errors.go @@ -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 ( diff --git a/pkg/api/handlers/swagger/models.go b/pkg/api/handlers/swagger/models.go index a05e57dff5..2422b08b60 100644 --- a/pkg/api/handlers/swagger/models.go +++ b/pkg/api/handlers/swagger/models.go @@ -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 ( diff --git a/pkg/api/handlers/swagger/responses.go b/pkg/api/handlers/swagger/responses.go index 3de9b06e99..d97bde6dd8 100644 --- a/pkg/api/handlers/swagger/responses.go +++ b/pkg/api/handlers/swagger/responses.go @@ -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 (