Skip to content

[BUG] Documentation states you can exclude by attribute with short name or full name - cannot by long name #1589

Closed
@tonyhallett

Description

@tonyhallett

Describe the bug
From https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/GlobalTool.md

You can also ignore additional attributes by using the ExcludeByAttribute property (short name or full name supported):

To Reproduce
Create a custom attribute, apply it at any level.
Supply fully qualified through one of the drivers

Expected behavior
Is it excluded

Actual behavior
Is not excluded

Additional context

private bool IsExcludeAttribute(CustomAttribute customAttribute)

None of the Instrumenter tests supply the attributesToIgnore as fully qualified
e.g

InstrumenterTest instrumenterTest = CreateInstrumentor(attributesToIgnore: new string[] { excludedAttribute });

Metadata

Metadata

Assignees

Labels

enhancementGeneral enhancement request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions