Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bjornhellander opened this issue Jul 11, 2024 · 0 comments

Comments

@bjornhellander
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant