-
Notifications
You must be signed in to change notification settings - Fork 135
Add an id for @VisibleForTesting annotation checks. #1252
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
Conversation
Generate changelog in
|
.baseline/checkstyle/checkstyle.xml
Outdated
| <property name="lineSeparator" value="lf"/> | ||
| </module> | ||
| <module name="RegexpMultiline"> <!-- Development Practices: Writing good unit tests --> | ||
| <property name="id" value="VisibleForTestingPackagePrivate"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you actually need to make this change to the other checkstyle.xml - this one will get overwritten next time you run ./gradlew baselineUpdateConfig in this repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
Should we just migrate this to an errorprone rule? |
|
Generally in favor of moving everything we can to errorprone :-) |
|
Alternative proposal: #1253 |
|
Ah, great @carterkozak! Gonna close since, that should allow me to suppress correctly. |
Before this PR
Cannot selectively turn this check off.
After this PR
==COMMIT_MSG==
@VisibleForTesting annotation has an id.
==COMMIT_MSG==
Possible downsides?