diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-09 17:36:09 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-09 17:38:15 +0100 |
commit | a7031c132203d183210e8bc5c73479ca0031fd13 (patch) | |
tree | df0c383698ebd6ee50c6ec689902d486cccee99f /sonar-plugin-api | |
parent | f02ad88827e09165aa7433b2951085db4503055a (diff) | |
download | sonarqube-a7031c132203d183210e8bc5c73479ca0031fd13.tar.gz sonarqube-a7031c132203d183210e8bc5c73479ca0031fd13.zip |
SONAR-3239 Depreciate the paragraph metrics
Namely:
- PARAGRAPHS
- PARAGRAPH_COMPLEXITY
- PARAGRAPH_COMPLEXITY_DISTRIBUTION
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java | 24 |
1 files changed, 24 insertions, 0 deletions
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 a8f657d0373..282d82e6ea6 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 @@ -148,7 +148,15 @@ public final class CoreMetrics { .setFormula(new SumChildValuesFormula(false)) .create(); + /** + * @deprecated since Sonar 2.14 - See SONAR-3239 + */ + @Deprecated public static final String PARAGRAPHS_KEY = "paragraphs"; + /** + * @deprecated since Sonar 2.14 - See SONAR-3239 + */ + @Deprecated public static final Metric PARAGRAPHS = new Metric.Builder(PARAGRAPHS_KEY, "Paragraphs", Metric.ValueType.INT) .setDescription("Number of paragraphs") .setDirection(Metric.DIRECTION_WORST) @@ -287,7 +295,15 @@ public final class CoreMetrics { .setFormula(new AverageComplexityFormula(CoreMetrics.FILES)) .create(); + /** + * @deprecated since Sonar 2.14 - See SONAR-3239 + */ + @Deprecated public static final String PARAGRAPH_COMPLEXITY_KEY = "paragraph_complexity"; + /** + * @deprecated since Sonar 2.14 - See SONAR-3239 + */ + @Deprecated public static final Metric PARAGRAPH_COMPLEXITY = new Metric.Builder(PARAGRAPH_COMPLEXITY_KEY, "Complexity /paragraph", Metric.ValueType.FLOAT) .setDescription("Complexity average by paragraph") .setDirection(Metric.DIRECTION_WORST) @@ -323,7 +339,15 @@ public final class CoreMetrics { .setFormula(new SumChildDistributionFormula().setMinimumScopeToPersist(Scopes.DIRECTORY)) .create(); + /** + * @deprecated since Sonar 2.14 - See SONAR-3239 + */ + @Deprecated public static final String PARAGRAPH_COMPLEXITY_DISTRIBUTION_KEY = "paragraph_complexity_distribution"; + /** + * @deprecated since Sonar 2.14 - See SONAR-3239 + */ + @Deprecated public static final Metric PARAGRAPH_COMPLEXITY_DISTRIBUTION = new Metric.Builder(PARAGRAPH_COMPLEXITY_DISTRIBUTION_KEY, "Paragraph distribution /complexity", Metric.ValueType.DISTRIB) .setDescription("Paragraph distribution /complexity") .setDirection(Metric.DIRECTION_NONE) |