Skip to content

Commit 45007b9

Browse files
mahfouz72rnveach
authored andcommitted
Config: use new treewalker property to skip non-compiled files in regression
1 parent d85c3dd commit 45007b9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

checkstyle-tester/my_check.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
</module>
1919

2020
<module name="TreeWalker">
21+
<!-- as we run on regression even on non-compiled files we need to skip exceptions on them -->
22+
<property name="skipFileOnJavaParseException" value="true"/>
23+
<property name="javaParseExceptionSeverity" value="ignore"/>
24+
2125
<!-- Example of checkstyle Check usage -->
2226
<!-- PLEASE CHANGE IT TO CHECK YOU ARE TESTING !!!! -->
2327
<module name="ThrowsCount">
@@ -27,7 +31,7 @@
2731
<!-- Example of sevntu.checkstyle Check usage -->
2832
<!-- <module name="NestedSwitchCheck"/> -->
2933

30-
<!-- usuppress javadoc parsing errors, as we test Check not a parser -->
34+
<!-- suppress javadoc parsing errors, as we test Check not a parser -->
3135
<module name="SuppressionXpathSingleFilter">
3236
<property name="message" value="Javadoc comment at column \d+ has parse error"/>
3337
</module>
@@ -40,9 +44,4 @@
4044
</module>
4145
-->
4246

43-
<!-- as we run on regression even on non-compiled files we need to skip exceptions on them -->
44-
<module name="SuppressionSingleFilter">
45-
<property name="message" value="Exception occurred while parsing"/>
46-
<property name="checks" value="Checker"/>
47-
</module>
4847
</module>

0 commit comments

Comments
 (0)