Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11880

CI-Game should support Codenarc in Violations RuleSet

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • ci-game-plugin
    • 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

            redsolo redsolo
            juriarte Jorge Uriarte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: