Examples of RuleStatus


Examples of org.sonar.api.rule.RuleStatus

      context.rule.setSeverity(severity);
    }
  }

  private void updateStatus(RuleUpdate update, Context context) {
    RuleStatus status = update.getStatus();
    if (status == null) {
      throw new IllegalArgumentException("The status is missing");
    } else {
      context.rule.setStatus(status);
    }
View Full Code Here

Examples of org.sonar.api.rule.RuleStatus

      }

      update.put(RuleField.FIX_DESCRIPTION.field(), rule.getEffortToFixDescription());
      update.put(RuleField.SEVERITY.field(), rule.getSeverityString());

      RuleStatus status = rule.getStatus();
      update.put(RuleField.STATUS.field(), status != null ? rule.getStatus().name() : null);

      update.put(RuleField.LANGUAGE.field(), rule.getLanguage());
      update.put(RuleField.INTERNAL_KEY.field(), rule.getConfigKey());
      update.put(RuleField.IS_TEMPLATE.field(), rule.isTemplate());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.