Coverage is taking into account blank lines

Sonarqube 7.9

I would like to know why for new code the scanner is detecting the blank lines as new code and for that reporting that there is no coverage for these lines. There is a way to avoid this?



Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.6 → 8.9.2 → 9.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your actual question, are you talking about the yellow highlight? That only shows which lines have changed; it has nothing to do with coverage.


Thank you so much for your answer, we are moving this week to the 8.9

1 Like