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

arbeiter.checkstyle.3.source-code.checks.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">

  <property name="charset" value="UTF-8"/>
  <property name="severity" value="error"/>
  <property name="fileExtensions" value="java, properties, xml"/>

  <!-- filters -->

  <module name="SuppressWarningsFilter"/>

  <!-- checks -->

  <!-- Headers -->
  <module name="Header"/>
  <module name="RegexpHeader"/>

  <!-- Javadoc Comments -->
  <module name="JavadocPackage"/>

  <!-- Miscellaneous -->
  <module name="NewlineAtEndOfFile"/>
  <module name="OrderedProperties"/>
  <module name="Translation"/>
  <module name="UniqueProperties"/>

  <!-- Regexp -->
  <module name="RegexpMultiline"/>
  <module name="RegexpOnFilename"/>
  <module name="RegexpSingleline"/>

  <!-- Size Violations -->
  <module name="FileLength"/>
  <module name="LineLength">
    <property name="severity" value="ignore"/>
  </module>

  <!-- Whitespace -->
  <module name="FileTabCharacter"/>

  <module name="TreeWalker">

    <!-- Annotations -->
    <module name="AnnotationLocation"/>
    <module name="AnnotationOnSameLine">
      <property name="severity" value="ignore"/>
    </module>
    <module name="AnnotationUseStyle">
      <property name="severity" value="ignore"/>
    </module>
    <module name="MissingDeprecated"/>
    <module name="MissingOverride"/>
    <module name="PackageAnnotation"/>
    <module name="SuppressWarnings"/>
    <module name="SuppressWarningsHolder"/>

    <!-- Block Checks -->
    <module name="AvoidNestedBlocks"/>
    <module name="EmptyBlock"/>
    <module name="EmptyCatchBlock"/>
    <module name="LeftCurly"/>
    <module name="NeedBraces"/>
    <module name="RightCurly"/>

    <!-- Class Design -->
    <module name="DesignForExtension"/>
    <module name="FinalClass"/>
    <module name="HideUtilityClassConstructor"/>
    <module name="InnerTypeLast"/>
    <module name="InterfaceIsType"/>
    <module name="MutableException"/>
    <module name="OneTopLevelClass"/>
    <module name="ThrowsCount"/>
    <module name="VisibilityModifier"/>

    <!-- Coding -->
    <module name="ArrayTrailingComma"/>
    <module name="AvoidDoubleBraceInitialization"/>
    <module name="AvoidInlineConditionals"/>
    <module name="AvoidNoArgumentSuperConstructorCall"/>
    <module name="CovariantEquals"/>
    <module name="DeclarationOrder"/>
    <module name="DefaultComesLast"/>
    <module name="EmptyStatement"/>
    <module name="EqualsAvoidNull"/>
    <module name="EqualsHashCode"/>
    <module name="ExplicitInitialization"/>
    <module name="FallThrough"/>
    <module name="FinalLocalVariable"/>
    <module name="HiddenField">
      <property name="severity" value="ignore"/>
    </module>
    <module name="IllegalCatch"/>
    <module name="IllegalInstantiation"/>
    <module name="IllegalThrows"/>
    <module name="IllegalToken"/>
    <module name="IllegalTokenText"/>
    <module name="IllegalType"/>
    <module name="InnerAssignment"/>
    <module name="MagicNumber"/>
    <module name="MatchXpath"/>
    <module name="MissingCtor"/>
    <module name="MissingSwitchDefault"/>
    <module name="ModifiedControlVariable"/>
    <module name="MultipleStringLiterals"/>
    <module name="MultipleVariableDeclarations"/>
    <module name="NestedForDepth"/>
    <module name="NestedIfDepth"/>
    <module name="NestedTryDepth"/>
    <module name="NoArrayTrailingComma"/>
    <module name="NoClone"/>
    <module name="NoEnumTrailingComma"/>
    <module name="NoFinalizer"/>
    <module name="OneStatementPerLine"/>
    <module name="OverloadMethodsDeclarationOrder"/>
    <module name="PackageDeclaration"/>
    <module name="ParameterAssignment"/>
    <module name="RequireThis"/>
    <module name="ReturnCount"/>
    <module name="SimplifyBooleanExpression"/>
    <module name="SimplifyBooleanReturn"/>
    <module name="StringLiteralEquality"/>
    <module name="SuperClone"/>
    <module name="SuperFinalize"/>
    <module name="UnnecessaryParentheses"/>
    <module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
    <module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
    <module name="UnnecessarySemicolonInEnumeration"/>
    <module name="UnnecessarySemicolonInTryWithResources"/>
    <module name="VariableDeclarationUsageDistance"/>

    <!-- Imports -->
    <module name="AvoidStarImport"/>
    <module name="AvoidStaticImport">
      <property name="severity" value="ignore"/>
    </module>
    <module name="CustomImportOrder">
      <property name="severity" value="ignore"/>
    </module>
    <module name="IllegalImport"/>
    <module name="ImportControl">
      <property name="file" value="/config/import-control.xml"/>
    </module>
    <module name="ImportOrder">
      <property name="groups" value="java,javax,javafx,jakarta,*"/>
      <property name="option" value="bottom"/>
      <property name="separated" value="true"/>
      <property name="separatedStaticGroups" value="true"/>
    </module>
    <module name="RedundantImport"/>
    <module name="UnusedImports"/>

    <!-- Javadoc Comments -->
    <module name="AtclauseOrder"/>
    <module name="InvalidJavadocPosition"/>
    <module name="JavadocBlockTagLocation"/>
    <module name="JavadocContentLocation"/>
    <module name="JavadocMethod"/>
    <module name="JavadocMissingLeadingAsterisk"/>
    <module name="JavadocMissingWhitespaceAfterAsterisk"/>
    <module name="JavadocParagraph"/>
    <module name="JavadocStyle"/>
    <module name="JavadocTagContinuationIndentation"/>
    <module name="JavadocType"/>
    <module name="JavadocVariable">
      <property name="severity" value="ignore"/>
    </module>
    <module name="MissingJavadocMethod"/>
    <module name="MissingJavadocPackage"/>
    <module name="MissingJavadocType"/>
    <module name="NonEmptyAtclauseDescription"/>
    <module name="RequireEmptyLineBeforeBlockTagGroup"/>
    <module name="SingleLineJavadoc"/>
    <module name="SummaryJavadoc"/>
    <module name="WriteTag">
      <property name="severity" value="ignore"/>
    </module>

    <!-- Metrics -->
    <module name="BooleanExpressionComplexity"/>
    <module name="ClassDataAbstractionCoupling"/>
    <module name="ClassFanOutComplexity"/>
    <module name="CyclomaticComplexity"/>
    <module name="JavaNCSS"/>
    <module name="NPathComplexity"/>

    <!-- Miscellaneous -->
    <module name="ArrayTypeStyle"/>
    <module name="AvoidEscapedUnicodeCharacters"/>
    <module name="CommentsIndentation"/>
    <module name="DescendantToken"/>
    <module name="FinalParameters"/>
    <module name="Indentation"/>
    <module name="NoCodeInFile"/>
    <module name="OuterTypeFilename"/>
    <module name="TodoComment"/>
    <module name="TrailingComment">
      <property name="severity" value="ignore"/>
    </module>
    <module name="UncommentedMain"/>
    <module name="UpperEll"/>

    <!-- Modifiers -->
    <module name="ClassMemberImpliedModifier"/>
    <module name="InterfaceMemberImpliedModifier"/>
    <module name="ModifierOrder"/>
    <module name="RedundantModifier">
      <property name="tokens" value="VARIABLE_DEF"/>
      <property name="tokens" value="ANNOTATION_FIELD_DEF"/>
      <property name="tokens" value="CTOR_DEF"/>
      <property name="tokens" value="CLASS_DEF"/>
      <property name="tokens" value="RESOURCE"/>
    </module>

    <!-- Naming Conventions -->
    <module name="AbbreviationAsWordInName">
      <property name="allowedAbbreviationLength" value="0"/>
    </module>
    <module name="AbstractClassName"/>
    <module name="CatchParameterName"/>
    <module name="ClassTypeParameterName"/>
    <module name="ConstantName"/>
    <module name="IllegalIdentifierName"/>
    <module name="InterfaceTypeParameterName"/>
    <module name="LambdaParameterName"/>
    <module name="LocalFinalVariableName"/>
    <module name="LocalVariableName"/>
    <module name="MemberName"/>
    <module name="MethodName"/>
    <module name="MethodTypeParameterName"/>
    <module name="PackageName"/>
    <module name="ParameterName"/>
    <module name="PatternVariableName"/>
    <module name="RecordComponentName"/>
    <module name="RecordTypeParameterName"/>
    <module name="StaticVariableName"/>
    <module name="TypeName"/>

    <!-- Regexp -->
    <module name="Regexp"/>
    <module name="RegexpSinglelineJava"/>

    <!-- Size Violations -->
    <module name="AnonInnerLength"/>
    <module name="ExecutableStatementCount"/>
    <module name="LambdaBodyLength"/>
    <module name="MethodCount"/>
    <module name="MethodLength"/>
    <module name="OuterTypeNumber"/>
    <module name="ParameterNumber"/>
    <module name="RecordComponentNumber"/>

    <!-- Whitespace -->
    <module name="EmptyForInitializerPad"/>
    <module name="EmptyForIteratorPad"/>
    <module name="EmptyLineSeparator">
      <property name="tokens" value="IMPORT"/>
      <property name="tokens" value="STATIC_IMPORT"/>
      <property name="tokens" value="CLASS_DEF"/>
      <property name="tokens" value="INTERFACE_DEF"/>
      <property name="tokens" value="ENUM_DEF"/>
      <property name="tokens" value="STATIC_INIT"/>
      <property name="tokens" value="INSTANCE_INIT"/>
      <property name="tokens" value="METHOD_DEF"/>
      <property name="tokens" value="CTOR_DEF"/>
      <property name="tokens" value="VARIABLE_DEF"/>
      <property name="tokens" value="RECORD_DEF"/>
      <property name="tokens" value="COMPACT_CTOR_DEF"/>
    </module>
    <module name="GenericWhitespace"/>
    <module name="MethodParamPad"/>
    <module name="NoLineWrap"/>
    <module name="NoWhitespaceAfter"/>
    <module name="NoWhitespaceBefore"/>
    <module name="OperatorWrap"/>
    <module name="ParenPad"/>
    <module name="SeparatorWrap"/>
    <module name="SingleSpaceSeparator"/>
    <module name="TypecastParenPad"/>
    <module name="WhitespaceAfter"/>
    <module name="WhitespaceAround"/>

  </module>

</module>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy