Skip to content

Cleanup global usings in Analyzers#4849

Merged
thomhurst merged 2 commits intothomhurst:mainfrom
SimonCropp:Cleanup-global-usings-in-Analyzers
Feb 18, 2026
Merged

Cleanup global usings in Analyzers#4849
thomhurst merged 2 commits intothomhurst:mainfrom
SimonCropp:Cleanup-global-usings-in-Analyzers

Conversation

@SimonCropp
Copy link
Contributor

This pull request adds support for detecting and removing global using directives for test frameworks (NUnit, MSTest, and xUnit) in both the analyzers and their tests. The analyzers now flag global usings like global using Xunit; as migration issues, and the code fixers can remove them.

SimonCropp and others added 2 commits February 18, 2026 21:57
Report diagnostic at the using directive's location instead of the
entire CompilationUnitSyntax, consistent with BaseMigrationAnalyzer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@thomhurst
Copy link
Owner

Thanks 😁

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

Successfully merging this pull request may close these issues.

2 participants

Comments