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
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ build --javacopt "-Xep:EqualsUsingHashCode:WARN"
build --javacopt "-Xep:ExtendingJUnitAssert:WARN"
# TODO(#222) Increase to error when we build from jflex-1.7.1 with a lexer annotated with
# @SuppressWarnings
build --javacopt "-Xep:FallThrough:OFF"
build --javacopt "-Xep:FallThrough:WARN"
build --javacopt "-Xep:Finally:WARN"
build --javacopt "-Xep:FloatCast:WARN"
build --javacopt "-Xep:FloatingPointAssertionWithinEpsilon:WARN"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,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