Skip to content

Instantly share code, notes, and snippets.

@BorzdeG
Created July 17, 2016 08:47
Show Gist options
  • Save BorzdeG/5b9bc8bb10fb1cce273130c98f6d1cfe to your computer and use it in GitHub Desktop.
Save BorzdeG/5b9bc8bb10fb1cce273130c98f6d1cfe 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" />
<property name="severity" value="error" />
<!--Filters: http://checkstyle.sourceforge.net/config_filters.html -->
<module name="SuppressWarningsFilter" />
<module name="TreeWalker">
<property name="tabWidth" value="2" />
<property name="fileExtensions" value="java, properties, xml" />
<!--Annotations: http://checkstyle.sourceforge.net/config_annotation.html -->
<module name="MissingDeprecated" />
<module name="SuppressWarnings" />
<module name="SuppressWarningsHolder" />
<!--Block Checks: http://checkstyle.sourceforge.net/config_blocks.html -->
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected|ignore" />
</module>
<!--Class Design: http://checkstyle.sourceforge.net/config_design.html -->
<module name="FinalClass" />
<module name="HideUtilityClassConstructor" />
<module name="OneTopLevelClass" />
<!--Coding: http://checkstyle.sourceforge.net/config_coding.html -->
<module name="DefaultComesLast" />
<module name="EqualsAvoidNull" />
<module name="EqualsHashCode" />
<module name="MagicNumber">
<property name="ignoreHashCodeMethod" value="true" />
<property name="ignoreFieldDeclaration" value="true" />
<property name="ignoreAnnotation" value="true" />
</module>
<module name="MissingSwitchDefault" />
<module name="MultipleStringLiterals" />
<module name="NestedForDepth">
<property name="max" value="2" />
</module>
<module name="NestedIfDepth">
<property name="max" value="2" />
</module>
<module name="NestedTryDepth">
<property name="max" value="2" />
</module>
<module name="StringLiteralEquality" />
<!--Imports: http://checkstyle.sourceforge.net/config_imports.html -->
<module name="RedundantImport" />
<module name="UnusedImports" />
<!--Javadoc Comments: http://checkstyle.sourceforge.net/config_javadoc.html -->
<module name="NonEmptyAtclauseDescription" />
<!--Metrics: http://checkstyle.sourceforge.net/config_metrics.html -->
<module name="BooleanExpressionComplexity" />
<module name="CyclomaticComplexity" />
<!--Miscellaneous: http://checkstyle.sourceforge.net/config_misc.html -->
<module name="ArrayTypeStyle" />
<module name="FinalParameters" />
<module name="OuterTypeFilename" />
<module name="UpperEll" />
<!--Modifiers: http://checkstyle.sourceforge.net/config_modifier.html -->
<module name="ModifierOrder" />
<!--Naming Conventions: http://checkstyle.sourceforge.net/config_naming.html -->
<module name="AbbreviationAsWordInName" />
<module name="AbstractClassName" />
<module name="ConstantName" />
<module name="InterfaceTypeParameterName" />
<module name="MemberName" />
<module name="MethodName" />
<module name="MethodTypeParameterName" />
<module name="PackageName" />
<module name="ParameterName" />
<!--Size Violations: http://checkstyle.sourceforge.net/config_sizes.html -->
<module name="AnonInnerLength" />
<module name="LineLength">
<property name="max" value="170" />
</module>
<module name="ParameterNumber" />
<!-- Whilespace: http://checkstyle.sourceforge.net/config_whitespace.html -->
<module name="GenericWhitespace" />
<module name="MethodParamPad">
<property name="tokens" value="METHOD_DEF" />
<property name="allowLineBreaks" value="true" />
</module>
<module name="NoLineWrap" />
</module>
<!--Miscellaneous: http://checkstyle.sourceforge.net/config_misc.html -->
<module name="UniqueProperties" />
</module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment