Issue #18571: New Check BlockCommentEndPositionCheck#19039
Conversation
e8d71a1 to
69d11d2
Compare
|
created a PR to fix ci/semaphore failure. sevntu-checkstyle/sevntu.checkstyle#1157 |
|
GitHub, generate website |
|
GitHub, generate report |
|
Report generation failed on phase "make_report", |
|
GitHub, generate report |
|
Report generation failed on phase "make_report", |
@romani I am getting the above error while generating the diff report. Can you help me fix this? |
|
Add proper exception handling in new module config like this https://gist.githubusercontent.com/vivek-0509/36cbe7f3789730951f15e7b6d551c6f3/raw/7ac2050528756f02e9952ae546a9c1e8cfed29c0/base_config.xml |
|
@vivek-0509 Thanks |
|
GitHub, generate report |
|
i reviewed diff report and found ambiguous case. It is hard to determine whether it is a block comment or a Javadoc, especially when it is written above a method, class, or any valid Javadoc position. Therefore, it cannot be classified unambiguously as either a block comment or a Javadoc. |
|
@romani please review, i am going to participate in gsoc so working on new check will be very helpful for me. |
7016b5e to
889d830
Compare
| <!-- suppressed BlockCommentEndPosition in some files --> | ||
| <suppress checks="BlockCommentEndPosition" | ||
| files="[\\/]src[\\/]main[\\/]java[\\/]com[\\/]puppycrawl[\\/]tools[\\/]checkstyle[\\/]DefaultLogger.java"/> | ||
| <suppress checks="BlockCommentEndPosition" |
There was a problem hiding this comment.
You might also need to add suppression to pass CI
There was a problem hiding this comment.
i already created a PR sevntu-checkstyle/sevntu.checkstyle#1157. Do i need to suppress here?
There was a problem hiding this comment.
I didn't know you had a PR up, that should be fine then! The violations seem minimal and I assume main files should be compliant rather than surpressed
|
sevntu PR is merged, and this PR is rebased in web |
|
GitHub, generate website |
416c53d to
550c129
Compare
|
due to small changes in docs i am generating site again. |
|
GitHub, generate website |
|
@romani resolved all error and most of the ci is green, please review |
|
GitHub, generate report |
eb48ea5 to
e83301b
Compare
|
@romani please review |
|
@romani I have rebased this PR, please review |
Issue #18571
Implemented a new check,
BlockCommentEndPositionCheck, that verifies that*/is either alone on its own line or on the same line as/**.Contirbution repo PR: checkstyle/contribution#1034
New module config: https://gist.githubusercontent.com/Praveen7294/c6fd73abb4cfc532c5f9f14822d3ca58/raw/da5c048293c4009580a506bb41ca00e8dea77aab/config.xml