Hello!
I am using SonarQube community Edition version 8.9.10 and am noticing a behaviour I am not able to explain when looking at the files list for coverage overall and on new code.
In particular, the number of files appearing in the “new code” section appears to always be bigger than the one on “overall code”, while logically I would think it should be the opposite.
In the API call to generate that list there appear to be a bunch of filters:
/api/measures/component_tree?additionalFields=metrics&ps=500&asc=true&metricSort=coverage&s=metric&metricSortFilter=withMeasuresOnly&component=componentname&metricKeys=coverage%2Cuncovered_lines%2Cuncovered_conditions&strategy=leaves
I refer to “strategy” in particular. Why should these files be excluded?
Would working on all the files, even those not appearing in the overall coverage section, contribute to increasing the overall coverage percentage?
Thank you a lot in advance!