testit.webtester-build-tools.2.3.1.source-code.pmd_rules.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webtester-build-tools
Show all versions of webtester-build-tools
A collection of artifacts (i.e. PMD rules) needed for building WebTester.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <ruleset name="slu-it ruleset" 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>testIT WebTester PMD rules</description> <exclude-pattern>.*/test-output/.*</exclude-pattern> <rule ref="rulesets/java/basic.xml" /> <rule ref="rulesets/java/braces.xml" /> <rule ref="rulesets/java/clone.xml" /> <rule ref="rulesets/java/empty.xml" /> <rule ref="rulesets/java/finalizers.xml" /> <rule ref="rulesets/java/imports.xml"> <exclude name="UnusedImports" /> <exclude name="TooManyStaticImports" /> </rule> <rule ref="rulesets/java/logging-java.xml"> <exclude name="LoggerIsNotStaticFinal" /> </rule> <rule ref="rulesets/java/optimizations.xml"> <exclude name="LocalVariableCouldBeFinal" /> <exclude name="MethodArgumentCouldBeFinal" /> <exclude name="AvoidInstantiatingObjectsInLoops" /> </rule> <rule ref="rulesets/java/strictexception.xml" /> <rule ref="rulesets/java/strings.xml" /> <rule ref="rulesets/java/sunsecure.xml" /> <rule ref="rulesets/java/typeresolution.xml"> <exclude name="UnusedImports" /> </rule> <rule ref="rulesets/java/unnecessary.xml"> <exclude name="UselessParentheses" /> </rule> <rule ref="rulesets/java/unusedcode.xml"> <exclude name="UnusedPrivateMethod" /> <exclude name="UnusedPrivateField" /> </rule> <!-- special excludes --> <rule ref="rulesets/java/strings.xml/AvoidDuplicateLiterals"> <properties> <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[ends-with(@Image,'Test')]" /> </properties> </rule> <rule ref="rulesets/java/logging-java.xml/LoggerIsNotStaticFinal"> <properties> <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[ends-with(@Image,'Test')]" /> </properties> </rule> <rule ref="rulesets/java/strictexception.xml/AvoidThrowingRawExceptionTypes"> <properties> <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[ends-with(@Image,'Test')]" /> </properties> </rule> <rule ref="rulesets/java/strictexception.xml/AvoidCatchingGenericException"> <properties> <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[ends-with(@Image,'Test')]" /> </properties> </rule> </ruleset>