Skip to content

ExcludeByAttribute obsolete excludes ref-struct #1204

@Turnerj

Description

@Turnerj

Admittedly I could just not exclude obsolete attributes but basically, a ref-struct actually has an obsolete intentionally added by the compiler.

Here is an example of a recently compiled code that I intentionally decompiled to find this "hidden" obsolete attribute.

image

Microsoft has documentation about it and why it is there too: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.2/span-safety#metadata-representation-or-ref-like-structs

Is there a way that coverlet could exclude obsolete without excluding ref-struct? Ideally in a way that doesn't require hard coding the files in the runsettings config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral enhancement requeststaletenet-coverageIssue related to possible incorrect coverage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions