Sonarqube 6.7.5 Calculating Code Coverage even when the project does not have src/main/java folder

When I run an analysis on a UI project with only JS code in it, and no src/main/java folder, the quality gate for code coverage fails. Before on 5.6.6, it was working fine. After upgrade to 6.7.5, I started seeing this issue.

I use Jenkins Sonar for running analysis using maven.

[ERROR] Coverage: 0.0 < 60
[ERROR] Critical Issues: 277 > 0
[ERROR] Blocker Issues: 38 > 0
[ERROR] [BUILD BREAKER] Project did not meet 3 conditions

1 answer

  • answered 2018-11-08 22:44 Upen

    Worked around this issue using the


    Now the analysis scope has been reduced to avoid .js files from coverage report.