Hello Sasa,
Thanks for your feedback. I would need your help because I failed to reproduce this coverage report bug.
SonarRuby should never count empty lines or lines having “end”. SonarRuby has two cases:
-
When SimpleCov produces data in
coverage/.resultset.jsonrelated to a ruby file, SonarRuby uses it:

-
When SimpleCov produces NO data in
coverage/.resultset.jsonrelated to a ruby file (that is not a test file), SonarRuby has to generate uncovered lines for it:

Above example are generated using SonarRuby 1.5 and SimpleCov 0.16.1.
Could you try to add a simple file to your project that you will be able to share with us and that reproduces this wrong coverage report? We would also need your version number of SonarRuby and SimpleCov. And the blocs of data in your coverage/.resultset.json that is related to the simple file.
Regards,
Alban