-
Notifications
You must be signed in to change notification settings - Fork 134
StrictUnusedVariable should respect -XoptIgnoreSuppressionAnnotations; @SuppressWarnings("UnusedVariable") no longer suppresses StrictUnusedVariable #3384
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
base: develop
Are you sure you want to change the base?
Conversation
Generate changelog in
|
✅ Successfully generated changelog entry!Need to regenerate?Simply interact with the changelog bot comment again to regenerate these entries. 📋Changelog Preview🐛 Fixes
|
|
When this rolls out, places with @SuppressWarnings("UnusedVariable") will additionally suppress for-rollout:StrictUnusedVariable. Then, when removeUnused mode is fixed, we can remove the unused suppressions on UnusedVariable. |
DO NOT MERGE (YET)We're currently moving all the error-prone infrastructure in gradle-baseline (including baseline-error-prone, baseline-nullaway) to https://github.com/palantir/baseline-error-prone. This PR should be opened in the new repository once setup is completed. |
|
Hey there, our error-prone infrastructure has been moved to https://github.com/palantir/baseline-error-prone. |
Before this PR
@SuppressWarnings("UnusedVariable")suppresses it, buterrorProneOpotions.disable("UnusedVariable")does not disable it. This also interferes with RemoveUnused mode, as it doesn't know@SuppressWarnings("UnusedVariable")is a suppression for StrictUnusedVariableAfter this PR
@SuppressWarnings("UnusedVariable")should only suppress UnusedVariable,@SuppressWarnings("StrictUnusedVariable")should only suppress StrictUnusedVariable, andSuppressWarnings("unused")is the catch-all suppression for all unused checks (including UnusedMethod). Let's implement this behavior so removeUnused mode can work with StrictUnusedVariable.==COMMIT_MSG==
StrictUnusedVariable should respect
-XoptIgnoreSuppressionAnnotations;@SuppressWarnings("UnusedVariable")no longer suppresses StrictUnusedVariable==COMMIT_MSG==
Possible downsides?