Pull #18589: Add NullArgumentForNonNullParameter #17988 #17985 #18479#18589
Conversation
| </goals> | ||
| <configuration> | ||
| <failOnError>false</failOnError> | ||
| <failOnError>true</failOnError> |
There was a problem hiding this comment.
🦢
without this its no fun, leaking all the error to prod.
There was a problem hiding this comment.
We have no leaks, execution is wrapped by groovy to handle errors
There was a problem hiding this comment.
command is locally not working
There was a problem hiding this comment.
please run locally and show me output:
./mvnw -e --no-transfer-progress clean compile -P error-prone-compile
we dont see errors because they not fail on error.
There was a problem hiding this comment.
We have no leaks, execution is wrapped by groovy to handle errors
this the leckage:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/circleci/project/src/test/java/com/puppycrawl/tools/checkstyle/AbstractModuleTestSupport.java:[651,23] [NullArgumentForNonNullParameter] Null is not permitted for this parameter.
(see https://errorprone.info/bugpattern/NullArgumentForNonNullParameter)
[ERROR] /home/circleci/project/src/test/java/com/puppycrawl/tools/checkstyle/utils/TokenUtilTest.java:[294,32] [NullArgumentForNonNullParameter] Null is not permitted for this parameter.
(see https://errorprone.info/bugpattern/NullArgumentForNonNullParameter)
[INFO] 2 errors
[INFO] -------------------------------------------------------------
There was a problem hiding this comment.
This how CI is not leaking anything
checkstyle/.github/workflows/error-prone.yml
Lines 42 to 43 in 2bc80d9
Execution without groovy is for users on local to reproduce validation.
This is required, because error prone did not have reports, so we have to parse output, brutal, but works. Root reason is no report that we can parse after execution.
It will allow us to fail on error and get all violations
There was a problem hiding this comment.
we dont need violations, we need need just to fail bbuild like. in rewrite pmd spotbugs or spotless. we just nneed stability and no extra extra.
There was a problem hiding this comment.
Extra script helped us to fix all violations gradually, it will stay, even we are at 0 violations level.
It can help at #18599 to enable all to errors by single PR, to resolve later existing problems, but new problems will not be leaked
There was a problem hiding this comment.
This has not been the first time you brought this up in this repository @Pankraz76.
@romani and team have Error Prone setup with a Groovy script as he mentions. That's how they prefer it, so that's how it'll be. So no need to change anything about it 😄.
There was a problem hiding this comment.
@rickie , if there will be some native approach for external config suppression, it would be awesome and we can remove extra groovy wrapper.
Fixing old problems might take some time, but we would like to freeze all old problems and not let new problem to popup on new rules.
|
item [INFO] ------------------------------------------------------------- |
bb6ebf5 to
9f6370b
Compare
error-prone CI config #17988 #17985error-prone CI config #17988 #17985
error-prone CI config #17988 #17985error-prone CI config #17988 #17985 #18479
9f6370b to
b96e885
Compare
b96e885 to
a0cff02
Compare
a0cff02 to
e3cb726
Compare
e3cb726 to
d4b7aa0
Compare
|
so root cause is like always different config. @romani when executing with convention principle its finding 2 more issues. |
|
see the number −466 its hard to argue to have so much crazy cost for what? what makes check so special to be so extra extra? its just another java code base. |
d4b7aa0 to
c1f25b1
Compare
c1f25b1 to
1fb2c2c
Compare
1fb2c2c to
e431ef9
Compare
| [link check]:https://github.com/checkstyle/checkstyle/actions/workflows/run-link-check.yml | ||
| [link check img]:https://github.com/checkstyle/checkstyle/actions/workflows/run-link-check.yml/badge.svg | ||
|
|
||
| [error prone]:https://github.com/checkstyle/checkstyle/actions/workflows/error-prone.yml |
There was a problem hiding this comment.
thats kind of a flex we could have this for rewrite as well and spotless.
There was a problem hiding this comment.
There was a problem hiding this comment.
pmd also missing here but its broken anyways so thats something else.
a5f43ff to
9c38ec4
Compare
|
ty, for kind reply. |
|
this PR must have changes only for NullArgumentForNonNullParameter , enablement of rule and code changes only for it. |
|
yes lets split. |
9c38ec4 to
4be5d0a
Compare
rdy 2 merge, ty for effort given. |
|
curl: (22) The requested URL returned error: 503 |
4be5d0a to
1205a8e
Compare
applied requested change. Kindly consider merge. |
|
@romani kindly asking why you not considering my shit anymore? |
romani
left a comment
There was a problem hiding this comment.
this update is good, thanks a lot.
Pull #18589: Add
NullArgumentForNonNullParameter#17988 #17985 #18479