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

org.sonar.plugins.checkstyle.profile-sun-conventions.xml Maven / Gradle / Ivy

There is a newer version: 1.5M3
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
  <module name="Translation">
  </module>
  <module name="PackageHtml">
  </module>
  <module name="NewlineAtEndOfFile">
    <property name="lineSeparator" value="system"/>
  </module>
  <module name="TreeWalker">
    <module name="WhitespaceAfter">
      <property name="tokens" value="COMMA,SEMI,TYPECAST"/>
    </module>
    <module name="TabCharacter">
    </module>
    <module name="ParenPad">
      <property name="tokens" value="CTOR_CALL,LPAREN,METHOD_CALL,RPAREN,SUPER_CTOR_CALL"/>
    </module>
    <module name="NeedBraces">
      <property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_IF,LITERAL_FOR,LITERAL_WHILE"/>
    </module>
    <module name="MissingSwitchDefault">
    </module>
    <module name="EmptyForIteratorPad">
    </module>
    <module name="StaticVariableName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
    </module>
    <module name="SimplifyBooleanExpression">
    </module>
    <module name="ModifierOrder">
    </module>
    <module name="MethodName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
    </module>
    <module name="JavadocMethod">
      <property name="allowUndeclaredRTE" value="false"/>
      <property name="allowThrowsTagsForSubclasses" value="false"/>
      <property name="allowMissingParamTags" value="false"/>
      <property name="allowMissingThrowsTags" value="false"/>
      <property name="allowMissingReturnTag" value="false"/>
      <property name="allowMissingJavadoc" value="false"/>
      <property name="allowMissingPropertyJavadoc" value="false"/>
      <property name="tokens" value="METHOD_DEF,CTOR_DEF"/>
    </module>
    <module name="IllegalInstantiation">
    </module>
    <module name="HideUtilityClassConstructor">
    </module>
    <module name="FinalParameters">
      <property name="tokens" value="METHOD_DEF,CTOR_DEF"/>
    </module>
    <module name="FinalClass">
    </module>
    <module name="EmptyStatement">
    </module>
    <module name="EmptyBlock">
      <property name="tokens" value="LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT"/>
    </module>
    <module name="UpperEll">
    </module>
    <module name="TodoComment">
      <property name="format" value="TODO:"/>
    </module>
    <module name="InnerAssignment">
      <property name="tokens" value="ASSIGN,BAND_ASSIGN,BOR_ASSIGN,BSR_ASSIGN,BXOR_ASSIGN,DIV_ASSIGN,MINUS_ASSIGN,MOD_ASSIGN,PLUS_ASSIGN,SL_ASSIGN,SR_ASSIGN,STAR_ASSIGN"/>
    </module>
    <module name="DoubleCheckedLocking">
    </module>
    <module name="AvoidStarImport">
    </module>
    <module name="UnusedImports">
    </module>
    <module name="TypecastParenPad">
      <property name="tokens" value="TYPECAST,RPAREN"/>
    </module>
    <module name="RedundantThrows">
      <property name="allowUnchecked" value="false"/>
      <property name="allowSubclasses" value="false"/>
    </module>
    <module name="RedundantModifier">
      <property name="tokens" value="METHOD_DEF,VARIABLE_DEF,ANNOTATION_FIELD_DEF"/>
    </module>
    <module name="LineLength">
      <property name="ignorePattern" value="^$"/>
      <property name="max" value="80"/>
    </module>
    <module name="FileLength">
      <property name="max" value="2000"/>
    </module>
    <module name="ParameterNumber">
      <property name="max" value="7"/>
      <property name="tokens" value="METHOD_DEF,CTOR_DEF"/>
    </module>
    <module name="OperatorWrap">
      <property name="option" value="nl"/>
      <property name="tokens" value="BAND,BOR,BSR,BXOR,COLON,DIV,EQUAL,GE,GT,LAND,LE,LITERAL_INSTANCEOF,LOR,LT,MINUS,MOD,NOT_EQUAL,PLUS,QUESTION,SL,SR,STAR"/>
    </module>
    <module name="MemberName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
      <property name="applyToPublic" value="true"/>
      <property name="applyToProtected" value="true"/>
      <property name="applyToPackage" value="true"/>
      <property name="applyToPrivate" value="true"/>
    </module>
    <module name="SimplifyBooleanReturn">
    </module>
    <module name="RightCurly">
      <property name="tokens" value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_IF,LITERAL_ELSE"/>
    </module>
    <module name="PackageName">
      <property name="format" value="^[a-z]+(.[a-zA-Z_][a-zA-Z0-9_]*)*$"/>
    </module>
    <module name="EqualsHashCode">
    </module>
    <module name="ConstantName">
      <property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
    </module>
    <module name="TypeName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
    </module>
    <module name="MethodLength">
      <property name="max" value="150"/>
      <property name="countEmpty" value="true"/>
      <property name="tokens" value="METHOD_DEF,CTOR_DEF"/>
    </module>
    <module name="LocalFinalVariableName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
    </module>
    <module name="JavadocVariable">
    </module>
    <module name="JavadocType">
      <property name="allowMissingParamTags" value="false"/>
      <property name="tokens" value="INTERFACE_DEF,CLASS_DEF"/>
    </module>
    <module name="JavadocStyle">
      <property name="checkFirstSentence" value="true"/>
      <property name="checkEmptyJavadoc" value="false"/>
      <property name="checkHtml" value="true"/>
      <property name="tokens" value="INTERFACE_DEF,CLASS_DEF,METHOD_DEF,CTOR_DEF,VARIABLE_DEF"/>
    </module>
    <module name="InterfaceIsType">
      <property name="allowMarkerInterfaces" value="true"/>
    </module>
    <module name="IllegalImport">
    </module>
    <module name="HiddenField">
      <property name="tokens" value="PARAMETER_DEF,VARIABLE_DEF"/>
      <property name="ignoreConstructorParameter" value="false"/>
      <property name="ignoreSetter" value="false"/>
      <property name="ignoreAbstractMethods" value="false"/>
    </module>
    <module name="AvoidInlineConditionals">
    </module>
    <module name="NoWhitespaceAfter">
      <property name="allowLineBreaks" value="true"/>
      <property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
    </module>
    <module name="LeftCurly">
      <property name="option" value="eol"/>
      <property name="maxLineLength" value="80"/>
      <property name="tokens" value="CLASS_DEF,CTOR_DEF,INTERFACE_DEF,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,METHOD_DEF"/>
    </module>
    <module name="GenericIllegalRegexp">
      <property name="format" value="\s+$"/>
      <property name="ignoreCase" value="false"/>
      <property name="ignoreComments" value="false"/>
      <property name="message" value="Line has trailing spaces."/>
    </module>
    <module name="VisibilityModifier">
      <property name="packageAllowed" value="false"/>
      <property name="protectedAllowed" value="false"/>
      <property name="publicMemberPattern" value="^serialVersionUID$"/>
    </module>
    <module name="ParameterName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
    </module>
    <module name="NoWhitespaceBefore">
      <property name="allowLineBreaks" value="false"/>
      <property name="tokens" value="SEMI,POST_DEC,POST_INC"/>
    </module>
    <module name="MethodParamPad">
      <property name="allowLineBreaks" value="false"/>
      <property name="tokens" value="CTOR_DEF,LITERAL_NEW,METHOD_CALL,METHOD_DEF,SUPER_CTOR_CALL"/>
    </module>
    <module name="MagicNumber">
      <property name="tokens" value="NUM_DOUBLE,NUM_FLOAT,NUM_INT,NUM_LONG"/>
      <property name="ignoreNumbers" value="-1,0,1,2"/>
    </module>
    <module name="LocalVariableName">
      <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
    </module>
    <module name="DesignForExtension">
    </module>
    <module name="AvoidNestedBlocks">
      <property name="allowInSwitchCase" value="false"/>
    </module>
    <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,GENERIC_START,GENERIC_END,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
      <property name="allowEmptyConstructors" value="false"/>
      <property name="allowEmptyMethods" value="false"/>
    </module>
    <module name="ArrayTypeStyle">
      <property name="javaStyle" value="true"/>
    </module>
  </module>
</module>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy