Commit 24a7c2c6 authored by Christian Wulf's avatar Christian Wulf

configured checkstyle and pmd

parent 27b8ffa6
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
<local-check-config name="TeeTime" location="conf/quality-config/cs-conf.xml" type="project" description="">
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="TeeTime" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
<?xml version="1.0" encoding="UTF-8"?>
<pmd>
<useProjectRuleSet>true</useProjectRuleSet>
<ruleSetFile>conf\quality-config\pmd-ruleset.xml</ruleSetFile>
<includeDerivedFiles>false</includeDerivedFiles>
<violationsAsErrors>true</violationsAsErrors>
<fullBuildEnabled>true</fullBuildEnabled>
</pmd>
This diff is collapsed.
<?xml version="1.0"?>
<ruleset name="TeeTime 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>
This ruleset checks my code for bad stuff
</description>
<rule ref="rulesets/internal/all-java.xml"></rule>
<rule ref="rulesets/ecmascript/basic.xml" />
<rule ref="rulesets/ecmascript/braces.xml" />
<rule ref="rulesets/jsp/basic-jsf.xml" />
<rule ref="rulesets/jsp/basic.xml" />
<rule ref="rulesets/vm/basic.xml" />
<rule ref="rulesets/xml/basic.xml" />
<rule ref="rulesets/xsl/xpath.xml" />
<!-- custom adaptations -->
<rule ref="rulesets/java/basic.xml/EmptyCatchBlock" message="Throw at least an IllegalStateException(e)">
<priority>1</priority>
</rule>
<rule ref="rulesets/java/optimizations.xml">
<exclude name="LocalVariableCouldBeFinal" />
</rule>
<rule ref="rulesets/java/comments.xml">
<exclude name="CommentRequired" />
</rule>
<rule ref="rulesets/java/naming.xml" name="VariableNamingConventions">
<priority>5</priority>
</rule>
</ruleset>
\ No newline at end of file
<?xml version="1.0"?>
<ruleset name="Kieker PMD ruleset"
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>
This ruleset is checked for TeeTime automatically.
</description>
<rule ref="rulesets/java/basic.xml">
<exclude name="UnnecessaryFinalModifier"/>
</rule>
<rule ref="rulesets/java/braces.xml"/>
<rule ref="rulesets/java/clone.xml"/>
<!--<rule ref="rulesets/codesize.xml">-->
<rule ref="rulesets/java/controversial.xml">
<exclude name="AvoidFinalLocalVariable"/>
<exclude name="AvoidLiteralsInIfCondition"/>
<exclude name="AvoidUsingVolatile"/>
<exclude name="CallSuperInConstructor"/>
<exclude name="DataflowAnomalyAnalysis"/>
<exclude name="OnlyOneReturn"/>
<exclude name="UnusedModifier"/>
<exclude name="UnnecessaryConstructor"/>
<exclude name="UseConcurrentHashMap"/>
<exclude name="AssignmentInOperand"/>
<exclude name="NullAssignment"/>
<exclude name="BooleanInversion"/>
</rule>
<!--<rule ref="rulesets/coupling.xml">-->
<rule ref="rulesets/java/design.xml">
<exclude name="ConfusingTernary"/>
<exclude name="AvoidSynchronizedAtMethodLevel"/>
<exclude name="AbstractClassWithoutAbstractMethod"/>
<exclude name="GodClass"/>
</rule>
<rule ref="rulesets/java/finalizers.xml"/>
<rule ref="rulesets/java/imports.xml"/>
<rule ref="rulesets/java/j2ee.xml"/>
<rule ref="rulesets/java/junit.xml"/>
<rule ref="rulesets/java/logging-jakarta-commons.xml">
<exclude name="GuardLogStatement" />
</rule>
<rule ref="rulesets/java/migrating_to_13.xml"/>
<rule ref="rulesets/java/migrating_to_14.xml"/>
<rule ref="rulesets/java/migrating_to_15.xml"/>
<rule ref="rulesets/java/migrating_to_junit4.xml"/>
<rule ref="rulesets/java/naming.xml">
<exclude name="LongVariable"/>
<exclude name="PackageCase"/>
<exclude name="ShortVariable"/>
<exclude name="ShortClassName"/>
</rule>
<rule ref="rulesets/java/optimizations.xml">
<exclude name="AvoidInstantiatingObjectsInLoops"/>
</rule>
<rule ref="rulesets/java/strictexception.xml">
<exclude name="AvoidCatchingNPE"/>
<exclude name="AvoidThrowingNullPointerException"/>
<exclude name="SignatureDeclareThrowsException"/>
<exclude name="AvoidCatchingGenericException"/>
</rule>
<rule ref="rulesets/java/strings.xml">
<exclude name="AvoidDuplicateLiterals"/>
<exclude name="ConsecutiveAppendsShouldReuse"/>
</rule>
<rule ref="rulesets/java/sunsecure.xml"/>
<rule ref="rulesets/java/typeresolution.xml">
<exclude name="SignatureDeclareThrowsException"/>
</rule>
<rule ref="rulesets/java/unusedcode.xml">
<exclude name="UnusedModifier"/>
</rule>
</ruleset>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment