mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
Merge pull request #120454 from pohly/golangci-lint-hint-deprecated
golangci-lint: warn about deprecated APIs only as hints
This commit is contained in:
commit
9068bec08e
3 changed files with 24 additions and 0 deletions
|
|
@ -83,6 +83,14 @@ issues:
|
|||
- gosimple
|
||||
text: "S1033: unnecessary guard around call to delete"
|
||||
|
||||
# Didn't make it into https://github.com/kubernetes/kubernetes/issues/117288.
|
||||
# Discussion on Slack concluded that "it's hard to have a universal policy for all
|
||||
# functions marked deprecated" and thus this can only be a hint which must
|
||||
# be considered on a case-by-case basis.
|
||||
- linters:
|
||||
- staticcheck
|
||||
text: "SA1019: .*is deprecated"
|
||||
|
||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507030071
|
||||
- linters:
|
||||
- stylecheck
|
||||
|
|
|
|||
|
|
@ -89,6 +89,14 @@ issues:
|
|||
- gosimple
|
||||
text: "S1033: unnecessary guard around call to delete"
|
||||
|
||||
# Didn't make it into https://github.com/kubernetes/kubernetes/issues/117288.
|
||||
# Discussion on Slack concluded that "it's hard to have a universal policy for all
|
||||
# functions marked deprecated" and thus this can only be a hint which must
|
||||
# be considered on a case-by-case basis.
|
||||
- linters:
|
||||
- staticcheck
|
||||
text: "SA1019: .*is deprecated"
|
||||
|
||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507030071
|
||||
- linters:
|
||||
- stylecheck
|
||||
|
|
|
|||
|
|
@ -94,6 +94,14 @@ issues:
|
|||
- gosimple
|
||||
text: "S1033: unnecessary guard around call to delete"
|
||||
|
||||
# Didn't make it into https://github.com/kubernetes/kubernetes/issues/117288.
|
||||
# Discussion on Slack concluded that "it's hard to have a universal policy for all
|
||||
# functions marked deprecated" and thus this can only be a hint which must
|
||||
# be considered on a case-by-case basis.
|
||||
- linters:
|
||||
- staticcheck
|
||||
text: "SA1019: .*is deprecated"
|
||||
|
||||
# https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507030071
|
||||
- linters:
|
||||
- stylecheck
|
||||
|
|
|
|||
Loading…
Reference in a new issue