Code Coverage counting blank lines as uncovered

SonarQube appears to be counting blank lines as uncovered, even though it is clearly impossible to reach the covered lines without going through the blank lines: Here’s a screenshot:

This is resulting in erroneous reports that cause builds to fail.

We are running: SonarQube Community Edition * Version 9.3 (build 51899)


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:

9.3-> 9.9 → 10.0 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.