
hina.1.1.0.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 machina Show documentation
Show all versions of machina Show documentation
A finite state machine library that features true stateless
state machines.
<?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 - 2025 Weber Informatics LLC | Privacy Policy