From aa91ac0717e337019c98f5801590f5aaf6db3d93 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 4 Feb 2014 15:47:48 +0100 Subject: [PATCH] SONAR-5042 Deprecate RFC metric --- .../org/sonar/api/measures/CoreMetrics.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java index 56b169000e0..a6b5b38c76a 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java @@ -1669,22 +1669,42 @@ public final class CoreMetrics { .setHidden(true) .create(); + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final String RFC_KEY = "rfc"; + + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final Metric RFC = new Metric.Builder(RFC_KEY, "RFC", Metric.ValueType.INT) .setDescription("Response for Class") .setDirection(Metric.DIRECTION_WORST) .setQualitative(false) .setDomain(DOMAIN_DESIGN) .setFormula(new WeightedMeanAggregationFormula(CoreMetrics.FILES, false)) + .setHidden(true) .create(); + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final String RFC_DISTRIBUTION_KEY = "rfc_distribution"; + + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final Metric RFC_DISTRIBUTION = new Metric.Builder(RFC_DISTRIBUTION_KEY, "Class distribution /RFC", Metric.ValueType.DISTRIB) .setDescription("Class distribution /RFC") .setDirection(Metric.DIRECTION_NONE) .setQualitative(true) .setDomain(DOMAIN_DESIGN) .setFormula(new SumChildDistributionFormula().setMinimumScopeToPersist(Scopes.DIRECTORY)) + .setHidden(true) .create(); /** -- 2.39.5