rulesets.convention.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CodeNarc Show documentation
Show all versions of CodeNarc Show documentation
The CodeNarc project provides a static analysis tool for Groovy code.
<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> Convention rule set. These are rules for coding conventions; not necessarily errors. </description> <rule class='org.codenarc.rule.convention.CompileStaticRule'/> <rule class='org.codenarc.rule.convention.ConfusingTernaryRule'/> <rule class='org.codenarc.rule.convention.CouldBeElvisRule'/> <rule class='org.codenarc.rule.convention.CouldBeSwitchStatementRule'/> <rule class='org.codenarc.rule.convention.HashtableIsObsoleteRule'/> <rule class='org.codenarc.rule.convention.FieldTypeRequiredRule'/> <rule class='org.codenarc.rule.convention.IfStatementCouldBeTernaryRule'/> <rule class='org.codenarc.rule.convention.ImplicitClosureParameterRule'/> <rule class='org.codenarc.rule.convention.ImplicitReturnStatementRule'/> <rule class='org.codenarc.rule.convention.InvertedIfElseRule'/> <rule class='org.codenarc.rule.convention.InvertedConditionRule'/> <rule class='org.codenarc.rule.convention.LongLiteralWithLowerCaseLRule'/> <rule class='org.codenarc.rule.convention.MethodParameterTypeRequired'/> <rule class='org.codenarc.rule.convention.MethodReturnTypeRequiredRule'/> <rule class='org.codenarc.rule.convention.NoDefRule'/> <rule class='org.codenarc.rule.convention.NoDoubleRule'/> <rule class='org.codenarc.rule.convention.NoFloatRule'/> <rule class='org.codenarc.rule.convention.NoJavaUtilDateRule'/> <rule class='org.codenarc.rule.convention.NoTabCharacterRule'/> <rule class='org.codenarc.rule.convention.ParameterReassignmentRule'/> <rule class='org.codenarc.rule.convention.PublicMethodsBeforeNonPublicMethodsRule'/> <rule class='org.codenarc.rule.convention.StaticFieldsBeforeInstanceFieldsRule'/> <rule class='org.codenarc.rule.convention.StaticMethodsBeforeInstanceMethodsRule'/> <rule class='org.codenarc.rule.convention.TernaryCouldBeElvisRule'/> <rule class='org.codenarc.rule.convention.TrailingCommaRule'/> <rule class='org.codenarc.rule.convention.VariableTypeRequiredRule'/> <rule class='org.codenarc.rule.convention.VectorIsObsoleteRule'/> </ruleset>