Skip to content

ID0060 doesn't recognise extension methods #7796

@marcfree-buuk

Description

@marcfree-buuk

The following code raises a false-positive for ID0060: Removed unused parameter

    public static void Noop(this Assert assert)
    {
        /* intentional no-op */
    }

The parameter is required as it's an extension method, so that you can do Assert.That.Noop()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions