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

rulesets.sample.xml Maven / Gradle / Ivy

The newest version!
<ruleset xmlns="http://codenarc.org/ruleset/1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://codenarc.org/ruleset/1.0 http://codenarc.org/ruleset-schema.xsd"
        xsi:noNamespaceSchemaLocation="http://codenarc.org/ruleset-schema.xsd">

    <description>Sample rule set</description>

    <ruleset-ref path='rulesets/imports.xml'>
        <rule-config name='DuplicateImport'>
            <property name='priority' value='1'/>
        </rule-config>
    </ruleset-ref>

    <ruleset-ref path='rulesets/basic.xml'>
        <exclude name='StringInstantiation'/>
    </ruleset-ref>

    <rule class='org.codenarc.rule.generic.IllegalRegexRule'>
        <property name="name" value="AuthorTagNotAllowed"/>
        <property name='regex' value='\@author'/>
        <property name='violationMessage' value=''/>    <!-- Hide the default message for this rule -->
    </rule>

    <rule-script path='rules/MyStaticFieldRule.groovy'/>
</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy