-
Notifications
You must be signed in to change notification settings - Fork 356
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
Checker always run in Maven also without active profile in Java11 #5086
Comments
Thank you for pointing out that Could you take a look at #5089 and see whether it addresses your concern? Thanks again for the bug report. |
Good to fix documentation but normally if I don't specify a Maven profile... it should not be executed. |
Thanks for pointing that out. Our philosophy is that type-checking should be run on every compilation. If it is delayed or forgotten, and then run only later, then many benefits are lost and it is also much more troublesome to correct the entrenched errors. Other tools, such as Error Prone, give instructions to run unconditionally on every compile (they don't even provide a switch to turn it off). Thanks again for your feedback on the manual changes. We appreciate it! |
In my project I'm using Java 11 and Maven.
I follow this https://checkerframework.org/manual/#maven and add
and two profiles:
When I run
mvn clean package -DskipTests=true
the CF do it's job also if I do not specifiedcheckerframework
profile. This is weird.I tryed to add:
with the same results.
It seems possible to disable CF using:
So or there are something that it doesn't work or documentation si wrong.
Thanks
The text was updated successfully, but these errors were encountered: