rulesets.sample.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codenarc-maven-plugin Show documentation
Show all versions of codenarc-maven-plugin Show documentation
This Plug-In generates reports based on the CodeNarc Analyzer
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>