Skip to content

Rule to require a single space between an attribute and the parameter it applies toΒ #3118

Closed

Description

@jnm2

E.g. [NotNullWhen(true)]out string? foo should warn because there is no space between ] and out.

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1017.md is worded in a way that makes it sound like this rule should use the code SA1017:

A closing attribute bracket within a C# element is not spaced correctly.

Activity

  1. self-assigned this
    on Oct 16, 2026
  2. moved this from Backlog to In progress in StyleCopAnalyzerson Oct 16, 2026
  3. added a commit that references this issue on Oct 16, 2026
    7258f61
  4. moved this from In progress to Done in StyleCopAnalyzerson Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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