the-dext / RunCoverletReport

A Visual Studio 2019 Extension to run Coverlet and Report Generator
MIT License
40 stars 15 forks source link

Addresses the duplicate key error raised when using linked files #11

Closed StingyJack closed 3 years ago

StingyJack commented 3 years ago

https://github.com/the-dext/RunCoverletReport/issues/10

Taking the most optimistic line result in the event there are multiple results for the same line of a class. This can happen when using files from one project in another as linked files.

This prevents the error but probably does not address the root cause well enough. Files that are linked in a project should probably be excluded from being reported on to begin with, so long as they are already being reported on by another project. I think that would mean substantial changes and definitely a discussion before proceeding with that effort. For now this should at least take the best result possible and prevent the error.

the-dext commented 3 years ago

merging