Skip to content

Instantly share code, notes, and snippets.

@nyxcalamity
Last active Dec 30, 2015
Embed
What would you like to do?
checkstyle config file for crxmarkets
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!-- NOTE: Change formatting of PackageName if you need a generic config. -->
<module name="Checker">
<!-- Checks that property files contain the same keys. -->
<module name="Translation"/>
<module name="TreeWalker">
<module name="AbstractClassName">
<property name="severity" value="info"/>
</module>
<!-- Checks the style of array type definitions. String[] args vs String args[] -->
<module name="ArrayTypeStyle">
<property name="severity" value="info"/>
</module>
<!-- Finds nested blocks. -->
<module name="AvoidNestedBlocks">
<property name="severity" value="warning"/>
<property name="allowInSwitchCase" value="true"/>
</module>
<module name="ConstantName">
<property name="severity" value="info"/>
</module>
<module name="CovariantEquals">
<property name="severity" value="warning"/>
</module>
<!-- Checks cyclomatic complexity against a specified limit. -->
<module name="CyclomaticComplexity">
<property name="severity" value="info"/>
<property name="max" value="10"/>
</module>
<module name="DefaultComesLast">
<property name="severity" value="info"/>
</module>
<module name="EmptyBlock">
<property name="severity" value="info"/>
</module>
<module name="EmptyStatement">
<property name="severity" value="info"/>
</module>
<module name="EqualsAvoidNull">
<property name="severity" value="info"/>
</module>
<module name="EqualsHashCode">
<property name="severity" value="info"/>
</module>
<module name="ExplicitInitialization">
<property name="severity" value="info"/>
</module>
<!-- Checks that the parts of a class or interface declaration appear in the order. -->
<module name="DeclarationOrder">
<property name="severity" value="info"/>
</module>
<!-- Checks that class which has only private ctors is declared as final. -->
<module name="FinalClass">
<property name="severity" value="warning"/>
</module>
<module name="HiddenField">
<property name="severity" value="warning"/>
<property name="ignoreConstructorParameter" value="true"/>
<property name="ignoreSetter" value="true"/>
</module>
<!-- Make sure that utility classes (classes that contain only static methods) do not have a public constructor. -->
<module name="HideUtilityClassConstructor">
<property name="severity" value="warning"/>
</module>
<module name="IllegalCatch">
<property name="severity" value="info"/>
</module>
<module name="IllegalImport">
<property name="severity" value="warning"/>
</module>
<!-- Checks for illegal instantiations where a factory method is preferred. -->
<module name="IllegalInstantiation">
<property name="severity" value="info"/>
<property name="classes" value="java.lang.Boolean, java.lang.String"/>
</module>
<module name="IllegalThrows">
<property name="severity" value="warning"/>
</module>
<!-- Checks for assignments in subexpressions, such as in String s = Integer.toString(i = 2);. -->
<module name="InnerAssignment">
<property name="severity" value="warning"/>
</module>
<!-- Implements Bloch, Effective Java, Item 17 - Use Interfaces only to define types. -->
<module name="InterfaceIsType">
<property name="severity" value="info"/>
</module>
<!-- Checks the Javadoc of a type. -->
<module name="JavadocType">
<property name="severity" value="info"/>
<property name="authorFormat" value="\S"/>
</module>
<module name="LocalFinalVariableName">
<property name="severity" value="warning"/>
</module>
<module name="LocalVariableName">
<property name="severity" value="warning"/>
</module>
<module name="MemberName">
<property name="severity" value="warning"/>
</module>
<module name="MethodName">
<property name="severity" value="warning"/>
</module>
<module name="MissingDeprecated">
<property name="severity" value="info"/>
</module>
<module name="MissingOverride">
<property name="severity" value="info"/>
</module>
<module name="MissingSwitchDefault">
<property name="severity" value="warning"/>
</module>
<!-- Checks that the order of modifiers conforms to the suggestions in the Java Language specification -->
<module name="ModifierOrder">
<property name="severity" value="info"/>
</module>
<!-- Checks for multiple occurrences of the same string literal within a single file. -->
<module name="MultipleStringLiterals">
<property name="severity" value="info"/>
</module>
<module name="MutableException">
<property name="severity" value="info"/>
<!-- Checks the npath complexity against a specified limit (default = 200). -->
</module>
<module name="NPathComplexity">
<property name="severity" value="info"/>
</module>
<!-- Checks for braces around code blocks. -->
<module name="NeedBraces">
<property name="severity" value="info"/>
</module>
<module name="PackageDeclaration">
<property name="severity" value="info"/>
</module>
<module name="PackageName">
<property name="severity" value="warning"/>
<property name="format" value="^lu.crx(\.[a-zA-Z_][a-zA-Z0-9_]*)*$"/>
</module>
<!-- Disallow assignment of parameters. -->
<module name="ParameterAssignment">
<property name="severity" value="warning"/>
</module>
<module name="ParameterName">
<property name="severity" value="warning"/>
</module>
<module name="RedundantImport">
<property name="severity" value="info"/>
</module>
<module name="RedundantModifier">
<property name="severity" value="info"/>
</module>
<module name="RedundantThrows">
<property name="severity" value="info"/>
<property name="allowUnchecked" value="true"/>
</module>
<!-- Restricts return statements to a specified count (default = 2). -->
<module name="ReturnCount">
<property name="severity" value="info"/>
</module>
<module name="SimplifyBooleanExpression">
<property name="severity" value="warning"/>
</module>
<module name="SimplifyBooleanReturn">
<property name="severity" value="warning"/>
</module>
<module name="StaticVariableName">
<property name="severity" value="warning"/>
</module>
<module name="StringLiteralEquality">
<property name="severity" value="warning"/>
</module>
<module name="SuperClone">
<property name="severity" value="warning"/>
</module>
<module name="SuperFinalize">
<property name="severity" value="warning"/>
</module>
<module name="ThrowsCount">
<property name="severity" value="info"/>
<property name="max" value="2"/>
</module>
<module name="TypeName">
<property name="severity" value="warning"/>
</module>
<!-- Detects uncommented main methods. -->
<module name="UncommentedMain">
<property name="severity" value="warning"/>
</module>
<module name="UnusedImports">
<property name="severity" value="info"/>
</module>
<module name="UpperEll">
<property name="severity" value="info"/>
</module>
<!-- Checks visibility of class members. -->
<module name="VisibilityModifier">
<property name="severity" value="warning"/>
</module>
<module name="FileContentsHolder"/>
</module>
<module name="SuppressionCommentFilter"/>
</module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment