-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove SwitchStatementDefaultCase error-prone check #1309
Conversation
Generate changelog in
|
This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days. |
@iamdanfox @ferozco any thoughts on this? |
This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days. |
@iamdanfox @ferozco another gentle ping |
Ok so we're now just relying on product teams to know to avoid using |
Yes. This check was only ever a |
This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days. |
@iamdanfox any other concerns here? |
Released 3.12.0 |
Fixes #499
Fixes #541
Fixes #580
Before this PR
Baseline provides a
SwitchStatementDefaultCase
error-prone check.After this PR
Baseline does not provide a
SwitchStatementDefaultCase
error-prone check.I added this back in #481 with a very narrow focus on enums used in APIs. However there a many valid uses of default case in switch statements outside the narrow scope of interacting with an API.
We've ended disabling this check on many of our internal repos. And for repos that haven't disabled this check, having it at
SUGGESTION
results in a noisy compiler output.A number of other people have experience friction with this check, see the issues linked above.
The built-in error-prone switch statement checks should be sufficient for our uses.