Skip to content

Commit

Permalink
Config: use new treewalker property to skip non-compiled files in reg…
Browse files Browse the repository at this point in the history
…ression
  • Loading branch information
mahfouz72 authored and rnveach committed Jul 13, 2024
1 parent d85c3dd commit 45007b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions checkstyle-tester/my_check.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
</module>

<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">
Expand All @@ -27,7 +31,7 @@
<!-- Example of sevntu.checkstyle Check usage -->
<!-- <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 -->
<module name="SuppressionXpathSingleFilter">
<property name="message" value="Javadoc comment at column \d+ has parse error"/>
</module>
Expand All @@ -40,9 +44,4 @@
</module>
-->

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

0 comments on commit 45007b9

Please sign in to comment.