Config: use new treewalker property to skip non-compiled files in regression#877
Conversation
1ae300d to
56df849
Compare
|
@romani ping please can you help to fix CI
|
56df849 to
9f3c0b0
Compare
@mahfouz72 This is not a Checker property. |
9f3c0b0 to
438a24b
Compare
|
@rnveach done |
checkstyle-tester/my_check.xml
Outdated
| </module> | ||
|
|
||
| <!-- as we run on regression even on non-compiled files we need to skip exceptions on them --> | ||
| <property name="skipFileOnJavaParseException" value="true"/> |
There was a problem hiding this comment.
Please put them under other Checker properties. Group them together above , before first inner module
There was a problem hiding this comment.
Please put them under other Checker properties.
This is not checker property. Do you mean at the first line in tree walker module? like this
<module name="TreeWalker">
<!-- as we run on regression even on non-compiled files we need to skip exceptions on them -->
<property name="skipFileOnJavaParseException" value="true"/>
<property name="javaParseExceptionSeverity" value="ignore"/>
<!-- Example of checkstyle Check usage -->
<!-- PLEASE CHANGE IT TO CHECK YOU ARE TESTING !!!! -->
<module name="ThrowsCount">
<property name="max" value="20000000"/>
</module>
<!-- Example of sevntu.checkstyle Check usage -->
<!-- <module name="NestedSwitchCheck"/> -->
<!-- suppress javadoc parsing errors, as we test Check not a parser -->
<module name="SuppressionXpathSingleFilter">
<property name="message" value="Javadoc comment at column \d+ has parse error"/>
</module>
</module>There was a problem hiding this comment.
I prefer to put it after the filter and leave the check modules above, right after <module name="TreeWalker">
There was a problem hiding this comment.
Treewalker, yes, all propertties are on most top before any inner modules.
<module name="TreeWalker">
<!-- as we run on regression even on non-compiled files we need to skip exceptions on them -->
<property name="skipFileOnJavaParseException" value="true"/>
<property name="javaParseExceptionSeverity" value="ignore"/>
I insisting on this format.
| <!-- <module name="NestedSwitchCheck"/> --> | ||
|
|
||
| <!-- usuppress javadoc parsing errors, as we test Check not a parser --> | ||
| <!-- suppress javadoc parsing errors, as we test Check not a parser --> |
There was a problem hiding this comment.
This has been killing me for years, thank you for fixing this.
|
@relentless-pursuit , please subscribe to this PR, as we merge please update test-configs repo with new content of template config. |
f910de5 to
70f2f5b
Compare
blocked until checkstyle/checkstyle#15204