Skip to content

SA1600 is not raised for record primary constructors that are missing param tags #3780

Open
@SapiensAnatis

Description

@SapiensAnatis

Today, the following code will not cause any Stylecop diagnostics to be raised:

/// <summary>
/// Record.
/// </summary>
public record MyRecord(int Parameter);

This is in spite of the missing <param> tag for Parameter. Stylecop should report a diagnostic unless this is included:

/// <summary>
/// Record.
/// </summary>
/// <param name="Parameter">Parameter.</param>
public record MyRecord(int Parameter);

Because Parameter declares a property as well as a constructor parameter, it was agreed in #3770 that it should report SA1600 instead of the usual SA1611 for missing <param> tags.

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