-
Improvement
-
Resolution: Unresolved
-
Major
-
None
Easy enough. Current Violations ruleset for CI-Game does not take into account 'Codenarc' violations.
This simple patch will do.
Index: src/main/java/hudson/plugins/cigame/rules/plugins/violation/ViolationsRuleSet.java
===================================================================
— src/main/java/hudson/plugins/cigame/rules/plugins/violation/ViolationsRuleSet.java (revision 40143)
+++ src/main/java/hudson/plugins/cigame/rules/plugins/violation/ViolationsRuleSet.java (working copy)
@@ -18,5 +18,6 @@
add(new DefaultViolationRule("fxcop", Messages.ViolationRuleSet_FxcopRule_Name(), -1, 1)); //$NON-NLS-1$ //$NON-NLS-2$
add(new DefaultViolationRule("simian", Messages.ViolationRuleSet_SimianRule_Name(), -5, 5)); //$NON-NLS-1$ //$NON-NLS-2$
add(new DefaultViolationRule("stylecop", Messages.ViolationRuleSet_StylecopRule_Name(), -1, 1)); //$NON-NLS-1$ //$NON-NLS-2$
+ add(new DefaultViolationRule("codenarc", Messages.ViolationRuleSet_CodenarcRule_Name(), -1, 1)); //$NON-NLS-1$ //$NON-NLS-2$
}
}
Index: src/main/resources/hudson/plugins/cigame/rules/plugins/violation/Messages.properties
===================================================================
— src/main/resources/hudson/plugins/cigame/rules/plugins/violation/Messages.properties (revision 40143)
+++ src/main/resources/hudson/plugins/cigame/rules/plugins/violation/Messages.properties (working copy)
@@ -8,4 +8,5 @@
ViolationRuleSet.PylintRule.Name=pylint violation
ViolationRuleSet.SimianRule.Name=Simian violation
ViolationRuleSet.StylecopRule.Name=StyleCop violation
+ViolationRuleSet.CodenarcRule.Name=Codenarc violation
ViolationRuleSet.Title=Violations