diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-10 17:55:40 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-10 17:55:40 +0000 |
commit | 9dcf2f2c45ec1ce16ea78a489d78e026634ed2fb (patch) | |
tree | 670ca4539af8861efd59cf996e5583370bf87b36 /sonar-plugin-api | |
parent | 63eb4c886e8ac2d3d6c70e986774bef953dbad81 (diff) | |
download | sonarqube-9dcf2f2c45ec1ce16ea78a489d78e026634ed2fb.tar.gz sonarqube-9dcf2f2c45ec1ce16ea78a489d78e026634ed2fb.zip |
the metric public_undocumented_api must not have a worst value
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java | 2 |
1 files changed, 1 insertions, 1 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 4c812dcc659..e5533d3937b 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 @@ -171,7 +171,7 @@ public final class CoreMetrics { public static final String PUBLIC_UNDOCUMENTED_API_KEY = "public_undocumented_api"; public static final Metric PUBLIC_UNDOCUMENTED_API = new Metric(PUBLIC_UNDOCUMENTED_API_KEY, "Public undocumented API", "Public undocumented classes, methods and variables", Metric.ValueType.INT, Metric.DIRECTION_WORST, true, DOMAIN_DOCUMENTATION) - .setWorstValue(100.0).setBestValue(0.0).setDirection(Metric.DIRECTION_WORST).setOptimizedBestValue(true).setFormula( + .setBestValue(0.0).setDirection(Metric.DIRECTION_WORST).setOptimizedBestValue(true).setFormula( new SumChildValuesFormula(false)); public static final String COMMENTED_OUT_CODE_LINES_KEY = "commented_out_code_lines"; |