Skip to content

Commit

Permalink
Integrate PR SonarOpenCommunity#423 from Bertk
Browse files Browse the repository at this point in the history
SQ 5.0 compatibility
  • Loading branch information
jfallot committed Feb 9, 2015
1 parent bce7a6f commit 2a347b6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion cxx-squid/src/main/java/org/sonar/cxx/api/CxxMetric.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public enum CxxMetric implements MetricDef {
CLASSES,
COMPLEXITY,
COMMENT_LINES,
COMMENT_BLANK_LINES,
PUBLIC_API,
PUBLIC_UNDOCUMENTED_API;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CxxMetricTest {

@Test
public void test() {
assertThat(CxxMetric.values()).hasSize(11);
assertThat(CxxMetric.values()).hasSize(10);

for (CxxMetric metric : CxxMetric.values()) {
assertThat(metric.getName()).isEqualTo(metric.name());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ private void saveMeasures(org.sonar.api.resources.File sonarFile, SourceFile squ
context.saveMeasure(sonarFile, CoreMetrics.FUNCTIONS, squidFile.getDouble(CxxMetric.FUNCTIONS));
context.saveMeasure(sonarFile, CoreMetrics.CLASSES, squidFile.getDouble(CxxMetric.CLASSES));
context.saveMeasure(sonarFile, CoreMetrics.COMPLEXITY, squidFile.getDouble(CxxMetric.COMPLEXITY));
context.saveMeasure(sonarFile, CoreMetrics.COMMENT_BLANK_LINES, squidFile.getDouble(CxxMetric.COMMENT_BLANK_LINES));
context.saveMeasure(sonarFile, CoreMetrics.COMMENT_LINES, squidFile.getDouble(CxxMetric.COMMENT_LINES));
context.saveMeasure(sonarFile, CoreMetrics.PUBLIC_API, squidFile.getDouble(CxxMetric.PUBLIC_API));
context.saveMeasure(sonarFile, CoreMetrics.PUBLIC_UNDOCUMENTED_API, squidFile.getDouble(CxxMetric.PUBLIC_UNDOCUMENTED_API));
Expand Down

0 comments on commit 2a347b6

Please sign in to comment.