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

remove unnecessary using directives and sort the existing ones (IDE0005) #5971

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

kartheekp-ms
Copy link
Contributor

@kartheekp-ms kartheekp-ms commented Aug 15, 2024

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/2961

Description

I learnt that it is easy to remove unnecessary using directives using Visual Studio's Code Cleanup feature. After selecting the fixers, I clicked on Analyze > Code Cleanup > Run Code Cleanup (Profile 1) on Solution which removed unnecessary and sorted the using directives across the entire solution. @jgonz120 is working on enabling IDE0005 analyzer on build https://github.com/NuGet/Client.Engineering/issues/2845 so we don't end up adding new violations.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@kartheekp-ms kartheekp-ms requested a review from a team as a code owner August 15, 2024 02:14
@kartheekp-ms kartheekp-ms changed the title remove unnecessary using directives (IDE0005) remove unnecessary using directives and sort the existing ones (IDE0005) Aug 15, 2024
@kartheekp-ms kartheekp-ms enabled auto-merge (squash) August 16, 2024 06:11
@kartheekp-ms kartheekp-ms force-pushed the dev-kmps-codecleanup-remove-unused-usings branch from 2f85fa1 to 6dd1778 Compare August 16, 2024 16:42
@kartheekp-ms kartheekp-ms disabled auto-merge August 16, 2024 21:11
@kartheekp-ms kartheekp-ms enabled auto-merge (squash) August 16, 2024 21:13
Copy link
Contributor

@donnie-msft donnie-msft left a comment

Choose a reason for hiding this comment

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

Wouldn't have guessed there would be soooo many... thank you!

@kartheekp-ms kartheekp-ms force-pushed the dev-kmps-codecleanup-remove-unused-usings branch from 6dd1778 to 8b1f6dd Compare August 20, 2024 19:25
@kartheekp-ms kartheekp-ms merged commit 76148aa into dev Aug 20, 2024
28 checks passed
@kartheekp-ms kartheekp-ms deleted the dev-kmps-codecleanup-remove-unused-usings branch August 20, 2024 21:20
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.

4 participants