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

ib.automata-build-tools.0.8.0.source-code.automatalib-pmd-ruleset.xml Maven / Gradle / Ivy

<?xml version="1.0"?>
<!--
Copyright (C) 2013-2019 TU Dortmund
This file is part of AutomataLib, http://www.automatalib.net/.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ruleset name="AutomataLib PMD rules"
         xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">

    <description>AutomataLib PMD ruleset</description>

    <rule ref="category/java/bestpractices.xml">
        <exclude name="AccessorMethodGeneration"/>
        <exclude name="ArrayIsStoredDirectly"/>
        <exclude name="GuardLogStatement"/>
        <exclude name="MethodReturnsInternalArray"/>
        <exclude name="OneDeclarationPerLine"/>
        <exclude name="UnusedImports"/>
        <exclude name="UseVarargs"/>
    </rule>

    <!--<rule ref="category/java/codestyle.xml"/>-->

    <rule ref="category/java/design.xml">
        <exclude name="AvoidDeeplyNestedIfStmts"/>
        <exclude name="CollapsibleIfStatements"/>
        <exclude name="CyclomaticComplexity"/>
        <exclude name="DataClass"/>
        <exclude name="ExcessiveImports"/>
        <exclude name="ExcessiveMethodLength"/>
        <exclude name="ExcessiveParameterList"/>
        <exclude name="ExcessivePublicCount"/>
        <exclude name="GodClass"/>
        <exclude name="LawOfDemeter"/>
        <exclude name="LoosePackageCoupling"/>
        <exclude name="NcssCount"/>
        <exclude name="NPathComplexity"/>
        <exclude name="TooManyMethods"/>
    </rule>

    <!--<rule ref="category/java/documentation.xml"/>-->

    <rule ref="category/java/errorprone.xml">
        <exclude name="AssignmentInOperand"/>
        <exclude name="AvoidBranchingStatementAsLastInLoop"/>
        <exclude name="AvoidDuplicateLiterals"/>
        <exclude name="AvoidFieldNameMatchingMethodName"/>
        <exclude name="AvoidFieldNameMatchingTypeName"/>
        <exclude name="AvoidLiteralsInIfCondition"/>
        <exclude name="BeanMembersShouldSerialize"/>
        <exclude name="CompareObjectsWithEquals"/>
        <exclude name="ConstructorCallsOverridableMethod"/>
        <exclude name="EmptyWhileStmt"/>
        <exclude name="MissingSerialVersionUID"/>
        <exclude name="NonStaticInitializer"/>
        <exclude name="NullAssignment"/>
        <exclude name="UseLocaleWithCaseConversions"/>

        <exclude name="DataflowAnomalyAnalysis"/>
    </rule>

    <rule ref="category/java/multithreading.xml">
        <exclude name="AvoidSynchronizedAtMethodLevel"/>
        <exclude name="AvoidUsingVolatile"/>
        <exclude name="DoNotUseThreads"/>
        <exclude name="UseConcurrentHashMap"/>
    </rule>

    <rule ref="category/java/performance.xml">
        <exclude name="AvoidInstantiatingObjectsInLoops"/>
    </rule>

    <!--<rule ref="category/java/security.xml"/>-->

</ruleset>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy