pmd_ruleset.xml revision 8a841dc6dc54985806558f1af0542d271d57259f
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik<?xml version="1.0" encoding="UTF-8"?>
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik<ruleset name="Custom ruleset for OpenGrok"
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik xmlns="http://pmd.sf.net/ruleset/1.0.0"
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik <description>
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik Settings for PMD, tuned for the OpenGrok project.
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik </description>
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/strings.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/basic.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/braces.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/clone.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/design.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/finalizers.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/imports.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/junit.xml">
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco<!-- enable bellow to push people to write asserts which are easier to understand -->
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco <exclude name="JUnitAssertionsShouldIncludeMessage"/>
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco </rule>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/logging-java.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/migrating.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/optimizations.xml">
8c96c0b4587843dd3c027d3acb7dc6f016c54d6aJorgen Austvik <exclude name="AvoidInstantiatingObjectsInLoops"/>
8c96c0b4587843dd3c027d3acb7dc6f016c54d6aJorgen Austvik <!-- Enable the following when we have fever reported warnings -->
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik <exclude name="LocalVariableCouldBeFinal"/>
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik <exclude name="MethodArgumentCouldBeFinal"/>
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik </rule>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/strictexception.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/strings.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/sunsecure.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/typeresolution.xml">
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco<!-- <properties>
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco <property name="IgnoreJUnitCompletely" value="true"/>
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco </properties> -->
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Kosco </rule>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/unusedcode.xml"/>
8a841dc6dc54985806558f1af0542d271d57259fLubos Kosco <rule ref="rulesets/java/javabeans.xml/MissingSerialVersionUID"/>
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik
2ef63dc9adc693ddad2206d323b0a85a1afe70ecJorgen Austvik</ruleset>