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

config.pmd.rulesets.xml Maven / Gradle / Ivy

Go to download

A simple utility to manage environment configs in Java-based projects by merging *.properties files with environment variables overrides.

There is a newer version: 1.1.1
Show newest version
<?xml version="1.0"?>

<ruleset name="All Java 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>Every Java Rule in PMD</description>
	
	<!-- Default rulesets -->
	<rule ref="rulesets/java/basic.xml" />
	<rule ref="rulesets/java/empty.xml" />
	<rule ref="rulesets/java/imports.xml">
		<exclude name="TooManyStaticImports"/>
	</rule>
	<rule ref="rulesets/java/unnecessary.xml" />
    <rule ref="rulesets/java/unusedcode.xml">
    	<exclude name="UnusedPrivateField"/>
	</rule>
	<!-- Additional rulesets -->
    <rule ref="rulesets/java/braces.xml" />
    <rule ref="rulesets/java/strings.xml">
    	<exclude name="AvoidDuplicateLiterals"/>
    </rule>
    <rule ref="rulesets/java/strictexception.xml">
    	<exclude name="SignatureDeclareThrowsException"/>
    	<exclude name="AvoidCatchingGenericException"/>
    </rule>
    <rule ref="rulesets/java/naming.xml">
    	<exclude name="MethodNamingConventions"/>
    	<exclude name="LongVariable"/>
    	<exclude name="ShortVariable"/>
    	<exclude name="VariableNamingConventions"/>
    	<exclude name="SuspiciousConstantFieldName"/>
    	<exclude name="AbstractNaming"/>
    	<exclude name="ShortClassName"/>
    	<exclude name="AvoidFieldNameMatchingTypeName"/>
    </rule>
    <!-- <rule ref="rulesets/java/comments.xml" / -->
    <!-- <rule ref="rulesets/java/design.xml">
    	<exclude name="UseLocaleWithCaseConversions"/>
    	<exclude name="ImmutableField"/>
    </rule>
    
    <rule ref="rulesets/java/optimizations.xml">
    	<exclude name="MethodArgumentCouldBeFinal"/>
    	<exclude name="LocalVariableCouldBeFinal"/>
    </rule>
     -->
    
</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy