Allow a static final variable with the name 'log' in checkstyle and PMD rules.
Change-Id: I027c9cc22b6801a078b0c003b68294e2ef0fc4f1
Added comment to PMD rule exception for clarity.
Change-Id: I027c9cc22b6801a078b0c003b68294e2ef0fc4f1
Change newline formatting from DOS to Linux
This gets rid of additional '\r' characters at the end of lines in this file.
Change-Id: I027c9cc22b6801a078b0c003b68294e2ef0fc4f1
diff --git a/conf/pmd/onos_ruleset.xml b/conf/pmd/onos_ruleset.xml
index f70b8c0..d237731 100644
--- a/conf/pmd/onos_ruleset.xml
+++ b/conf/pmd/onos_ruleset.xml
@@ -36,6 +36,13 @@
<exclude name="ShortVariable" />
<exclude name="LongVariable" />
</rule>
+ <rule ref="rulesets/java/naming.xml/VariableNamingConventions">
+ <properties>
+ <!-- ONOS allows the name "log" for static final Loggers -->
+ <property name="violationSuppressRegex" value=".*'log'.*"/>
+ </properties>
+ </rule>
+
<rule ref="rulesets/java/clone.xml"/>
<rule ref="rulesets/java/strictexception.xml"/>
<rule ref="rulesets/java/design.xml">