All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nity4j.sanity4j.1.8.0.source-code.sanity4j_checks.xml Maven / Gradle / Ivy

Go to download

Sanity4J was created to simplify running multiple static code analysis tools on the Java projects. It provides a single entry point to run all the selected tools and produce a consolidated report, which presents all findings in an easily accessible manner.

There is a newer version: 1.8.2
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
    This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
    Checkstyle-Configuration: Sanity4J Checks
    Description: none
-->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
    <property name="severity" value="warning"/>
    <module name="TreeWalker">
        <property name="tabWidth" value="4"/>
        <module name="ConstantName">
        	<property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$|^log$"/>
        </module>
        <module name="LocalFinalVariableName"/>
        <module name="LocalVariableName"/>
        <module name="MemberName"/>
        <module name="MethodName"/>
        <module name="PackageName"/>
        <module name="ParameterName"/>
        <module name="StaticVariableName"/>
        <module name="TypeName">
        	<property name="format" value="^[A-Z][a-zA-Z0-9]*(_Test|_Suite)?$"/>
        </module>
        <module name="AvoidStarImport"/>
        <module name="IllegalImport"/>
        <!-- Handled by PMD
        <module name="UnusedImports"/>
        -->
        <module name="MethodLength"/>
        <module name="ParameterNumber"/>
        <module name="EmptyForIteratorPad"/>
        <module name="MethodParamPad"/>
        <module name="NoWhitespaceAfter">
            <property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
        </module>
        <module name="NoWhitespaceBefore"/>
        <module name="OperatorWrap"/>
        <module name="ParenPad"/>
        <module name="TypecastParenPad"/>
        <!-- Unused
        <module name="TabCharacter">
            <property name="severity" value="ignore"/>
        </module>
        -->
        <module name="WhitespaceAfter"/>
        <!-- The default Checkstyle 4.4 WhitespaceAround tokens include GENERIC_START, GENERIC_END and WILDCARD_TYPE. These should *not* have whitespace around them - "new List<String>()" is desired -->
        <module name="WhitespaceAround">
        	<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
        </module>
        <module name="AvoidNestedBlocks">
        	<property name="allowInSwitchCase" value="true"/>
        </module>
        <module name="EmptyBlock"/>
        <module name="LeftCurly">
            <property name="option" value="nl"/>
        </module>
        <module name="NeedBraces"/>
        <module name="RightCurly">
        	<property name="option" value="alone"/>
        </module>
        <!-- Unused
        <module name="AvoidInlineConditionals"/>
        -->
        <!-- No longer supported         
        <module name="DoubleCheckedLocking"/> 
        -->
        <module name="EmptyStatement"/>
        <module name="EqualsHashCode"/>
        <module name="HiddenField">
            <property name="ignoreSetter" value="true"/>
            <property name="ignoreConstructorParameter" value="true"/>
        </module>
        <module name="IllegalInstantiation"/>
        <module name="InnerAssignment"/>
        <module name="MagicNumber"/>
        <!-- Handled by PMD
        <module name="MissingSwitchDefault"/>
        -->
        <module name="SimplifyBooleanExpression"/>
        <module name="SimplifyBooleanReturn"/>
        <!-- Unused
        <module name="DesignForExtension"/>
        -->
        <module name="HideUtilityClassConstructor"/>
        <module name="InterfaceIsType"/>
        <module name="VisibilityModifier"/>
        <module name="ArrayTypeStyle"/>
        <!-- Unused        
        <module name="GenericIllegalRegexp">
            <property name="format" value="\s+$"/>
            <property name="message" value="Line has trailing spaces."/>
        </module>
        -->
        <!-- Unused
        <module name="TodoComment">
            <property name="severity" value="ignore"/>
        </module>
        -->
        <module name="UpperEll"/>
        <module name="LeftCurly">
            <property name="option" value="nl"/>
        </module>
	    <module name="JavadocType">
	    	<property name="authorFormat" value="\S"/>
	    </module>
	    <module name="JavadocMethod">
	    	<property name="logLoadErrors" value="true"/>
	    	<property name="suppressLoadErrors" value="true"/>
	    </module>
	    <module name="JavadocVariable"/>
	    <module name="JavadocStyle"/>
    </module>
    <module name="FileLength"/>
    <module name="NewlineAtEndOfFile"/>
    <module name="Translation"/>
    <module name="JavadocPackage"/>
</module>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy