I have a problem figuring out and hopefully fixing incorrect (in my opinion) code coverage calculations in SonarQube. Below are some more details and example files from SonarQube and from SimpleCov::Formatter::HTMLFormatter. In the whole project, we have ~96% of the overall code coverage but SonarQube is reporting only 67.5%