Skip to content

Do not warn SA1001 (Commas should be spaced correctly) if comma follows a preprocessor directive #3816

Open
@mikernet

Description

@mikernet

Example where I don't think I should need to suppress the diagnostic:

partial struct Money : IFormattable
#if !NETSTANDARD
#pragma warning disable SA1001 // Commas should be spaced correctly
    , ISpanFormattable
#pragma warning restore SA1001
#endif

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions