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

z.1.1.0.source-code.pmd-rules.xml Maven / Gradle / Ivy

Go to download

An easy drawing library for Java using Swing for drawing (therefor Jazz).

The newest version!
<?xml version="1.0"?>
<ruleset name="PMD Rules" xmlns="http://pmd.sf.net/ruleset/1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
	xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
	<description>
		A PMD Ruleset that demonstrates how to disable PMD rules for Lombok
		generated code.
	</description>

	<rule ref="rulesets/java/basic.xml" />
	<rule ref="rulesets/java/braces.xml" />
	<rule ref="rulesets/java/codesize.xml" />
	<rule ref="rulesets/java/controversial.xml">
		<exclude name="NullAssignment" />
		<exclude name="DataflowAnomalyAnalysis" />
		<exclude name="AvoidFinalLocalVariable" />
		<exclude name="AvoidLiteralsInIfCondition" />
	</rule>
	<rule ref="rulesets/java/coupling.xml">
		<exclude name="LoosePackageCoupling" />
		<exclude name="LawOfDemeter" />
	</rule>
	<rule ref="rulesets/java/empty.xml" />
	<rule ref="rulesets/java/finalizers.xml" />
	<rule ref="rulesets/java/imports.xml" />
	<rule ref="rulesets/java/javabeans.xml" />
	<rule ref="rulesets/java/naming.xml">
		<!-- Skipping because Lombok generates code with dollar signs in equals/hashCode 
			and so this tends to cry wolf. -->
		<exclude name="AvoidDollarSigns" />
		<!-- Skipping because id (identifier), rs (ResultSet), ps (PreparedStatement) 
			are OK, for example. -->
		<exclude name="ShortVariable" />
		<!-- Avoid duplication because we override the minimum property... -->
		<exclude name="LongVariable" />
	</rule>
	<rule ref="rulesets/java/naming.xml/LongVariable">
		<properties>
			<property name="minimum" value="36" />
		</properties>
	</rule>
	<rule ref="rulesets/java/optimizations.xml" />
	<rule ref="rulesets/java/strictexception.xml" />
	<rule ref="rulesets/java/strings.xml">
		<!-- Avoid duplication because we override... -->
		<exclude name="AvoidDuplicateLiterals" />
	</rule>
	<rule ref="rulesets/java/strings.xml/AvoidDuplicateLiterals">
		<properties>
			<property name="skipAnnotations" value="true" />
		</properties>
	</rule>
	<rule ref="rulesets/java/typeresolution.xml" />
	<rule ref="rulesets/java/unnecessary.xml" />
	<rule ref="rulesets/java/unusedcode.xml" />
</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy