Skip to content

Commit

Permalink
Merge pull request #16811 from edsantiago/lint-deprecated
Browse files Browse the repository at this point in the history
golangci-lint: remove three deprecated linters
  • Loading branch information
openshift-merge-robot authored Dec 14, 2022
2 parents 415a702 + 59118b4 commit ad5c0be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/swagger/errors.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/swagger/models.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/swagger/responses.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down

0 comments on commit ad5c0be

Please sign in to comment.