Skip to content

Instantly share code, notes, and snippets.

@arinmodi
Last active November 20, 2022 08:22
Show Gist options
  • Save arinmodi/6b46ea3817e1e421ee98eb01f1bed89d to your computer and use it in GitHub Desktop.
Save arinmodi/6b46ea3817e1e421ee98eb01f1bed89d to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
<property name="severity" value="warning"/>
<!-- haltOnException is required for exception fixes and reporting of all exceptions -->
<property name="haltOnException" value="false"/>
<!-- BeforeExecutionFileFilters is required for sources of java9 -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$" />
</module>
<module name="TreeWalker">
<!-- Example of checkstyle Check usage -->
<!-- PLEASE CHANGE IT TO CHECK YOU ARE TESTING !!!! -->
<!-- Example of sevntu.checkstyle Check usage -->
<!-- <module name="NestedSwitchCheck"/> -->
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrap1"/>
</module>
<module name="SeparatorWrap">
<property name="tokens" value="METHOD_REF"/>
<property name="option" value="nl"/>
<property name="id" value="SeparatorWrap2"/>
</module>
<module name="SeparatorWrap">
<property name="tokens" value="COMMA"/>
<property name="option" value="nl"/>
<property name="id" value="SeparatorWrap3"/>
</module>
</module>
<!-- Example of filter -->
<!--
<module name="SeverityMatchFilter">
<property name="severity" value="warning"/>
<property name="acceptOnMatch" value="false"/>
</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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment