Proposal to Extend Violation Comment Syntax to Include Column Numbers #17537
Replies: 2 comments 6 replies
-
we already have columns in junit method expected array. This is the only reason why we still keep such arrays in test methods.
somethign like this would be awesome, but it not easy archive. |
Beta Was this translation helpful? Give feedback.
-
|
I have two questions in my mind if we add something like this:
if we add something like below then also same problem occurs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Mentors,
I wanted to suggest an enhancement to the violation comment syntax used in Checkstyle test input files. Currently, test violations are annotated like this:
These annotations support line-level granularity, but do not support specifying column numbers, which limits the precision of test cases for some checks (like WhitespaceAround, MethodParamPad, etc.) where column position matters.
Proposal
I’d like to propose adding an optional column specification to the comment syntax, like:
This would allow us to:
Beta Was this translation helpful? Give feedback.
All reactions