| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to you 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 xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| name="Maven PMD Plugin Ruleset" |
| xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> |
| <description>Ruleset</description> |
| <rule ref="category/java/bestpractices.xml"> |
| <exclude name="AbstractClassWithoutAbstractMethod" /> |
| <exclude name="AccessorMethodGeneration" /> |
| <exclude name="ArrayIsStoredDirectly" /> |
| <exclude name="AvoidPrintStackTrace" /> |
| <exclude name="AvoidReassigningLoopVariables" /> |
| <exclude name="AvoidReassigningParameters" /> |
| <exclude name="AvoidStringBufferField" /> |
| <exclude name="AvoidUsingHardCodedIP" /> |
| <exclude name="ConstantsInInterface" /> |
| <exclude name="ForLoopVariableCount" /> |
| <exclude name="GuardLogStatement" /> |
| <exclude name="JUnitAssertionsShouldIncludeMessage" /> |
| <exclude name="JUnitTestContainsTooManyAsserts" /> |
| <exclude name="JUnitTestsShouldIncludeAssert" /> |
| <exclude name="MethodReturnsInternalArray" /> |
| <exclude name="OneDeclarationPerLine" /> |
| <exclude name="PreserveStackTrace" /> |
| <exclude name="ReplaceEnumerationWithIterator" /> |
| <exclude name="ReplaceHashtableWithMap" /> |
| <exclude name="SwitchStmtsShouldHaveDefault" /> |
| <exclude name="SystemPrintln" /> |
| <exclude name="UseTryWithResources" /> |
| <exclude name="UseVarargs" /> |
| </rule> |
| |
| <!--<rule ref="category/java/codestyle.xml" />--> |
| <rule ref="category/java/codestyle.xml/AvoidProtectedFieldInFinalClass" /> |
| <rule ref="category/java/codestyle.xml/ControlStatementBraces" /> |
| <rule ref="category/java/codestyle.xml/DontImportJavaLang" /> |
| <rule ref="category/java/codestyle.xml/DuplicateImports" /> |
| <rule ref="category/java/codestyle.xml/ExtendsObject" /> |
| <rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" /> |
| <rule ref="category/java/codestyle.xml/NoPackage" /> |
| <rule ref="category/java/codestyle.xml/PackageCase" /> |
| <rule ref="category/java/codestyle.xml/UnnecessaryModifier" /> |
| <rule ref="category/java/codestyle.xml/UnnecessaryReturn" /> |
| <rule ref="category/java/codestyle.xml/UseDiamondOperator" /> |
| |
| <!--<rule ref="category/java/design.xml" />--> |
| <!--<rule ref="category/java/documentation.xml" />--> |
| |
| <rule ref="category/java/errorprone.xml"> |
| <exclude name="AssignmentInOperand" /> |
| <exclude name="AssignmentToNonFinalStatic" /> |
| <exclude name="AvoidBranchingStatementAsLastInLoop" /> |
| <exclude name="AvoidCatchingNPE" /> |
| <exclude name="AvoidCatchingThrowable" /> |
| <exclude name="AvoidDuplicateLiterals" /> |
| <exclude name="AvoidFieldNameMatchingMethodName" /> |
| <exclude name="AvoidLiteralsInIfCondition" /> |
| <exclude name="BeanMembersShouldSerialize" /> |
| <exclude name="ConstructorCallsOverridableMethod" /> |
| <exclude name="DataflowAnomalyAnalysis" /> |
| <exclude name="DoNotCallSystemExit" /> |
| <exclude name="EmptyCatchBlock" /> |
| <exclude name="EmptyIfStmt" /> |
| <exclude name="LoggerIsNotStaticFinal" /> |
| <exclude name="MissingBreakInSwitch" /> |
| <exclude name="MissingSerialVersionUID" /> |
| <exclude name="MoreThanOneLogger" /> |
| <exclude name="NullAssignment" /> |
| <exclude name="ReturnEmptyArrayRatherThanNull" /> |
| <exclude name="UseProperClassLoader" /> |
| </rule> |
| <rule ref="category/java/multithreading.xml"> |
| <exclude name="AvoidSynchronizedAtMethodLevel" /> |
| <exclude name="UseConcurrentHashMap" /> |
| </rule> |
| <rule ref="category/java/performance.xml"> |
| <exclude name="AvoidInstantiatingObjectsInLoops" /> |
| <exclude name="InefficientEmptyStringCheck" /> |
| <exclude name="SimplifyStartsWith" /> |
| <exclude name="TooFewBranchesForASwitchStatement" /> |
| <exclude name="UseStringBufferForStringAppends" /> |
| </rule> |
| <rule ref="category/java/security.xml" /> |
| </ruleset> |