Issue #18228: Suppress IndentationCheck if text-block quotes have 0 indentation#18243
Conversation
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report for configs in PR description |
|
Report generation failed. Please check the logs for more details. |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
@mohitsatr , are you good here or need help ? |
59c5844 to
67c0b2d
Compare
|
Github, generate report for configs in PR description |
|
Github, generate report for configs in PR description |
|
Github, generate report for configs in PR description |
1 similar comment
|
Github, generate report for configs in PR description |
|
GitHub, generate report |
|
Report generation failed on phase "make_report", |
| <module name="SuppressWithPlainTextCommentFilter"> | ||
| <property name="checkFormat" value="IndentationCheck"/> | ||
| <property name="offCommentFormat" value='^""".?'/> | ||
| <property name="onCommentFormat" value='.'/> |
There was a problem hiding this comment.
Indentation Check is under Treewalker, we can use Xpath, please use .
There was a problem hiding this comment.
@romani I just looked into Xpath, and found that we don't expose column no attribute in Xpath, so if there is no way to do something like
//TEXT_BLOCK_LITERAL_BEGIN[@column=0]
any other suggession??
There was a problem hiding this comment.
yes, we always thought that if you have tree, why would you need to know column and skipped to add it to Xpath.
//TEXT_BLOCK_LITERAL_BEGIN[@column=0] is suppression for very special coding format.
…s have 0 indentation
67c0b2d to
49944a8
Compare
|
all was green in CI, rebased in web ui. |
|
GitHub, generate report |
romani
left a comment
There was a problem hiding this comment.
I am good to merge this update !!!
@mohitsatr , thanks a lot !!
Zopsss
left a comment
There was a problem hiding this comment.
Sorry for the late review, everything looks good to me
Resolves #18228
Explore regex: https://regex101.com/r/2UASwu/2
Diff Regression config: https://gist.githubusercontent.com/mohitsatr/23bc5fe0ec22bc3f1313de4b0699be95/raw/f8690fe2e607a4cd12c252387d797eb09587aae8/zero_indentation_master.xml
Diff Regression patch config: https://gist.githubusercontent.com/mohitsatr/b28617d21f19eb4ac2bfab30821d9a1b/raw/76f609a749a0bca30acd630ea22a8ffd99bea566/zero_indentation_patch.xml
Diff Regression projects: https://raw.githubusercontent.com/checkstyle/test-configs/main/TextBlockGoogleStyleFormatting/all-examples-in-one/list-of-projects.properties