Skip to content

[Bug] RCS1141: should not fire on static extension blocks #1865

Open

Description

@rsking

Product and version

Roslynator.Analyzers 5.0.1

Rule or diagnostic ID

RCS1141

Steps to reproduce

Add extension block as

/// <summary>
/// Extensions for <see cref="System.IO.Stream" />
/// </summary>
extension(System.IO.Stream)
{

}

Actual behavior

RCS1141 fires, and the code fix adds a /// <param name=""></param> as there is no name for the parameter.

Expected behavior

This should not fire, and should NOT fix the code to add an empty param element.

Exception messages and stack traces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions