danielpalme / ReportGenerator

ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.
https://reportgenerator.io
Apache License 2.0
2.58k stars 281 forks source link

Only skip the found line, not the whole file #585

Closed obergerdavid closed 1 year ago

obergerdavid commented 1 year ago

When using multiple coverage reports as input for the SonarQube format, then the coverage is not correctly merged. The reason for this is that the SonarCubeBuilder skips the whole file if an existing line is found in an existing file. With this PR this behavior is fixed, so that only the existing line is not added a second time.

danielpalme commented 1 year ago

Thanks for you PR. Will have a look next week.

danielpalme commented 1 year ago

Thanks again. I just merged your PR. The next release will contain the fix (not sure when I will publish it).