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

Cleanup unused usings (truly enforce ide0005 code analysis rule) #4231

Merged
merged 10 commits into from
Jan 10, 2023

Conversation

stan-sz
Copy link
Contributor

@stan-sz stan-sz commented Dec 28, 2022

Ensure unused usings are caught at the build time.

Description

Unused usings are part of unused code analysis rules: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005
Applie the suggestion from dotnet/roslyn#41640 (comment) and cleaned up doc-related warnings.

Related issue

Follows up on #3299 to clean up the repo from unused usings. With that in mind, the ide0005 rule being on-but-not-enforced:

  • I have ensured that there is a previously discussed and approved issue.

@stan-sz stan-sz marked this pull request as ready for review December 28, 2022 10:31
Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @stan-sz, I added a couple of comments.

For future iterations, please ensure you have discussed with us or have an approved ticket before doing changes as we want to avoid wasted time/effort on changes we could reject.

@stan-sz stan-sz changed the title Cleanup unused usings Cleanup unused usings (truly enforce ide0005 code analysis rule) Dec 30, 2022
@Evangelink Evangelink merged commit eb05f0d into microsoft:main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants