Link to issue [Question] [Possible Issue] exclude-by-attributes does not work for classes and globals
After trying different ways to make it work it seems that the parameter --exclude-by-attribute
can hold only one attribute
and not a comma separated list of attributes.
So instead of: --exclude-by-attribute 'Obsolete,GeneratedCode,CompilerGenerated'
we should do --exclude-by-attribute 'Obsolete' --exclude-by-attribute'GeneratedCode' --exclude-by-attribute 'CompilerGenerated'
- Build the solution.
- Run install-tools.ps1 so that you will download the coverlet global tool and report generator
- Run run-coverlet.ps1 as is taken from the example Documentation/Globaltool.md
Expected result: Should exclude the classes/methods that use the attributes.
Actual result: None of the attributes are being used to remove the classes/method.
We should update the documentation so that it is aligned with the expected way of using the parameter --exclude-by-attribute