76 lines
2.7 KiB
XML
76 lines
2.7 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
~ Copyright 2002-2019 the original author or authors.
|
|
~
|
|
~ 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
|
|
~
|
|
~ https://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="Custom ruleset"
|
|
xmlns="https://pmd.sourceforge.net/ruleset/2.0.0"
|
|
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="https://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
|
|
|
|
<rule ref="rulesets/java/basic.xml"/>
|
|
<rule ref="rulesets/java/braces.xml">
|
|
<exclude name="IfStmtsMustUseBraces"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/codesize.xml">
|
|
<exclude name="TooManyMethods"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/design.xml">
|
|
<exclude name="UncommentedEmptyMethodBody"/>
|
|
<exclude name="AbstractClassWithoutAbstractMethod"/>
|
|
<exclude name="NonStaticInitializer"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/design.xml">
|
|
<exclude name="AbstractClassWithoutAbstractMethod"/>
|
|
<exclude name="NonStaticInitializer"/>
|
|
<exclude name="UncommentedEmptyConstructor"/>
|
|
<exclude name="UncommentedEmptyMethodBody"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/empty.xml" />
|
|
<rule ref="rulesets/java/finalizers.xml" />
|
|
<rule ref="rulesets/java/imports.xml">
|
|
<exclude name="TooManyStaticImports"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/junit.xml">
|
|
<exclude name="JUnitTestContainsTooManyAsserts"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/naming.xml">
|
|
<exclude name="LongVariable" />
|
|
<exclude name="ShortVariable" />
|
|
<exclude name="ShortMethodName" />
|
|
<exclude name="AbstractNaming"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/optimizations.xml">
|
|
<exclude name="LocalVariableCouldBeFinal"/>
|
|
<exclude name="MethodArgumentCouldBeFinal"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/strictexception.xml">
|
|
<exclude name="AvoidThrowingRawExceptionTypes"/>
|
|
<exclude name="SignatureDeclareThrowsException"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/strings.xml">
|
|
<exclude name="AvoidDuplicateLiterals"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/typeresolution.xml">
|
|
<exclude name="SignatureDeclareThrowsException"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/unnecessary.xml" />
|
|
<rule ref="rulesets/java/unusedcode.xml" />
|
|
|
|
<!--
|
|
<rule ref="rulesets/java/comments.xml"/>
|
|
<rule ref="rulesets/java/controversial.xml"/>
|
|
-->
|
|
</ruleset> |