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

com.squeakysand.devtools.pmd.settings.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!--

       Copyright 2010-2012 Craig S. Dickson (http://craigsdickson.com)

       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.

-->

<!--
    Rule priorities are:
    1. Change absolutely required. Behavior is critically broken/buggy.
    2. Change highly recommended. Behavior is quite likely to be broken/buggy.
    3. Change recommended. Behavior is confusing, perhaps buggy, and/or against standards/best practices.
    4. Change optional. Behavior is not likely to be buggy, but more just flies in the face of standards/style/good taste.
    5. Change highly optional. Nice to have, such as a consistent naming policy for package/class/fields.

    1, 2 or 3 will cause a build failure. 4 or 5 will generate warnings.
-->

<ruleset name="Squeaky Sand 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 is a custom PMD Ruleset for Squeaky Sand projects. It is based on PMD 4.2.5
    </description>

    <rule ref="rulesets/basic.xml" />
    <!--rule ref="rulesets/basic-jsf.xml" />
    <rule ref="rulesets/basic-jsp.xml" /-->
    <rule ref="rulesets/braces.xml" />
    <rule ref="rulesets/clone.xml" />
    <rule ref="rulesets/codesize.xml"/>
    <rule ref="rulesets/controversial.xml">
        <!-- dont force empty no arg constructors if not necessary -->
        <exclude name="AtLeastOneConstructor" />
    </rule>
    <rule ref="rulesets/coupling.xml" />
    <rule ref="rulesets/design.xml"/>
    <rule ref="rulesets/finalizers.xml" />
    <rule ref="rulesets/imports.xml" />
    <rule ref="rulesets/j2ee.xml" />
    <rule ref="rulesets/javabeans.xml" />
    <rule ref="rulesets/junit.xml" />
    <rule ref="rulesets/logging-jakarta-commons.xml" />
    <rule ref="rulesets/logging-java.xml" />
    <rule ref="rulesets/migrating.xml" />
    <rule ref="rulesets/naming.xml">
		<!-- these checks are covered by Checkstyle instead -->
        <exclude name="ShortVariable"/>
        <exclude name="LongVariable"/>
        <exclude name="VariableNamingConventions"/>
        <exclude name="MethodNamingConventions"/>
        <exclude name="ClassNamingConventions"/>
        <exclude name="AbstractNaming"/>
        <exclude name="PackageCase"/>
    </rule>
    <rule ref="rulesets/optimizations.xml"/>
    <rule ref="rulesets/strictexception.xml" />
    <rule ref="rulesets/strings.xml"/>
    <rule ref="rulesets/sunsecure.xml" />
    <rule ref="rulesets/typeresolution.xml" />
    <rule ref="rulesets/unusedcode.xml" />
</ruleset>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy