Skip to content
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

Re-enable check against FallThrough violations #364

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
4 changes: 1 addition & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ build --javacopt "-Xep:EqualsIncompatibleType:ERROR"
build --javacopt "-Xep:EqualsUnsafeCast:ERROR"
build --javacopt "-Xep:EqualsUsingHashCode:ERROR"
build --javacopt "-Xep:ExtendingJUnitAssert:ERROR"
# TODO(#222) Increase to error when we build from jflex-1.7.1 with a lexer annotated with
# @SuppressWarnings
build --javacopt "-Xep:FallThrough:WARN"
build --javacopt "-Xep:FallThrough:ERROR"
build --javacopt "-Xep:Finally:ERROR"
build --javacopt "-Xep:FloatCast:ERROR"
build --javacopt "-Xep:FloatingPointAssertionWithinEpsilon:ERROR"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
<target>8</target>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne -Xep:FallThrough:WARN</arg>
<arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
Expand Down