blob: 2d8512361c01188e887122efa2f21e1e4522ffc4 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<ruleset name="Style Rules"
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"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
The Architecture ruleset contains a collection of good practices around architecture.
</description>
<rule class="org.apache.flex.pmd.rules.style.ConstructorNonEmptyReturnTypeRule"
message="A constructor should not have a return type">
<description>Even if this is syntactically correct, there should not be a return type for a constructor.</description>
<priority>5</priority>
<example>
public class VoidConstructor
{
public function VoidConstructor() : void // VIOLATION
{
}
}
</example>
</rule>
<rule class="org.apache.flex.pmd.rules.style.OverLongLineRule"
message="Too long line ({0} maximum, but {1} actually)">
<description></description>
<priority>5</priority>
<properties>
<property name="maximum">
<value>200</value>
</property>
</properties>
<example>
</example>
</rule>
<rule class="org.apache.flex.pmd.rules.style.ImportFromSamePackageRule"
message="Imports from the same package are not necessary">
<description></description>
<priority>5</priority>
<example>
package com.adobe.ac
{
import com.adobe.ac.MyModel; // VIOLATION HERE
public class BigModel
{
public var model : MyModel = null;
}
}
</example>
</rule>
<rule class="org.apache.flex.pmd.rules.style.CopyrightMissingRule"
message="The copyright header is missing in this file">
<priority>5</priority>
</rule>
<rule class="org.apache.flex.pmd.rules.style.BadFormatLoggerRule"
message="The logger is not correctly formatted because {0}">
<description></description>
<priority>5</priority>
<example>
</example>
</rule>
</ruleset>