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.62k stars 283 forks source link

.netconfig assemblyfilters not applying multiple #700

Open danpowell88 opened 2 hours ago

danpowell88 commented 2 hours ago

Describe the bug When using a .netconfig file I specified multiple filters using a single assemblyfilters attribute and it does not appear that they are all working, if i use multiple assemblyfilter attributes that it does work

To Reproduce

Using: Executable: /home/runner/.dotnet/tools/.store/dotnet-reportgenerator-globaltool/5.3.11/dotnet-reportgenerator-globaltool/5.3.11/tools/net8.0/any/ReportGenerator.Core.dll

The following did not exclude all assemblies

[ReportGenerator]
    assemblyfilters = -*Test*;-NServiceBus*

but the following did

[ReportGenerator]
    assemblyfilter = -*Test*
    assemblyfilter = -*NServiceBus*
danielpalme commented 2 hours ago

I will fix this in the next release!

danpowell88 commented 1 hour ago

Amazing, wasn't sure if I was doing something wrong!