Skip to content

SA1200 (Using directives must be placed correctly) is firing in file with only global usings #3875

@bjornhellander

Description

@bjornhellander

I would rather keep global using statements in source files instead of in project files, but centralized in one GlobalUsings.cs file (or something similar) to make them easy to maintain. This also avoids the current problems with mixing normal and global usings in the same file. But a file with only global using statements in it triggers SA1200 with version 1.2.0-beta.556.

Would an exception to SA1200 be ok for files that contain nothing but global using statements and whitespace?

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