Issue #12164: Enable Checker Framework#12194
Conversation
422f9de to
8e5c196
Compare
86bfbfc to
aced8ac
Compare
|
Please apply: For issue in hibernate, we will need to send a PR to do something similar. We can exclude enforcer run temporarily for them in our CI.
|
327a395 to
2bb2df4
Compare
|
Error from https://github.com/checkstyle/checkstyle/actions/runs/3047499328/jobs/4911550442
Running checker framework without
Creating a different profile for each checker will also not work. If a checker fails then new warnings from that checker can also be like Using |
4b681b0 to
83bbf94
Compare
83bbf94 to
0167a94
Compare
972583d to
25d7657
Compare
25d7657 to
8ad9305
Compare
|
Usage of warns might help only to not let maven execution fail with error code. So it will help us to analyze results and do failure based on some other reasons. Do we have problems to get stable output from Checker execution ? I try to understand what blocks it us to merge this PR |
That is not the main purpose of using We are using |
|
Good to know. Can you briefly answer my other question ? |
03106b0 to
0da7afe
Compare
I executed it locally a couple of times, and new violations pop up in the CI, trying once more. Update: It is stable now. |
ea5a8cd to
e34f1a6
Compare
| SystemExit { | ||
| doNotApplyToFileNames = 'pitest-survival-check-xml.groovy,error-prone-check.groovy' | ||
| } |
There was a problem hiding this comment.
We suppress every groovy script, removal of this is better, we will most probably use groovy only for writing scripts.
fc18676 to
6f66617
Compare
|
@Vyom-Yadav , please put in commit proper issue number - #12164 please fix codenarc |
6f66617 to
ca2a030
Compare
| <!-- Unstable as 'capture#' keeps changing in different runs. --> | ||
| <checkerFrameworkError unstable="true"> | ||
| <fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java</fileName> | ||
| <specifier>argument</specifier> | ||
| <message>incompatible argument for parameter constructor of invokeConstructor.</message> | ||
| <lineContent>handlerCtor, indentCheck, ast, parent);</lineContent> | ||
| <details> | ||
| found : @Initialized @Nullable Constructor<capture#788 extends @Initialized @Nullable Object> | ||
| required: @Initialized @NonNull Constructor<capture#788 extends @Initialized @Nullable Object> | ||
| </details> | ||
| </checkerFrameworkError> |
| <!-- Unstable as 'capture#' keeps changing in different runs. --> | ||
| <checkerFrameworkError unstable="true"> | ||
| <fileName>checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java</fileName> | ||
| <specifier>type.argument</specifier> | ||
| <message>incompatible type argument for type parameter T extends Object of invokeConstructor.</message> | ||
| <lineContent>resultHandler = (AbstractExpressionHandler) CommonUtil.invokeConstructor(</lineContent> | ||
| <details> | ||
| found : capture#788[ extends @UnknownKeyFor Object super @KeyForBottom Void] | ||
| required: [extends @UnknownKeyFor Object super @UnknownKeyFor NullType] | ||
| </details> | ||
| </checkerFrameworkError> |
romani
left a comment
There was a problem hiding this comment.
Ok let's try this Checker in read day to day coding
There was a problem hiding this comment.
There are a lot of nuances to understand with each checker, let’s merge this and live with it in order to learn. @Vyom-Yadav please create an issue to resolve checker suppressions, and in it please explain details of unstable suppressions.
Resolves #12164