Skip to content

Enable IDE0005 (unneccessary using statements) as error - #1759

Merged
Andy Jordan (andyleejordan) merged 2 commits into
masterfrom
andschwa/fix-ide0005
Apr 20, 2022
Merged

Enable IDE0005 (unneccessary using statements) as error#1759
Andy Jordan (andyleejordan) merged 2 commits into
masterfrom
andschwa/fix-ide0005

Conversation

@andyleejordan

Copy link
Copy Markdown
Member

Due to a quirk in how msbuild runs rules, documentation generation
must be enabled for this rule (and presumably others) to be respected.

See dotnet/roslyn#22579.

Fixes#1479.

@andyleejordan

Copy link
Copy Markdown
MemberAuthor

Interesting...passed locally, looks like in other configs though I need to clean up some using statements! And disable a bunch of XML warnings I don't care about. Converted to draft.

@andyleejordan
Andy Jordan (andyleejordan)force-pushed the andschwa/fix-ide0005 branch 2 times, most recently from 5e991a4 to d664e81CompareApril 20, 2022 20:14
Due to a quirk in how `msbuild` runs rules, documentation generation
must be enabled for this rule (and presumably others) to be respected.
@andyleejordan
Andy Jordan (andyleejordan) marked this pull request as ready for review April 20, 2022 20:28

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Awesome :) LGTM!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-GeneralIssue-EnhancementA feature request (enhancement).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-cleanup unused using statements

2 participants

@andyleejordan@SeeminglyScience