Skip to content

Enable IDE0065 Misplaced using directive#7922

Merged
RussKie merged 1 commit intodotnet:mainfrom
elachlan:IDE0065
Oct 11, 2022
Merged

Enable IDE0065 Misplaced using directive#7922
RussKie merged 1 commit intodotnet:mainfrom
elachlan:IDE0065

Conversation

@elachlan
Copy link
Contributor

@elachlan elachlan commented Oct 11, 2022

Enables IDE0065 Misplaced using directive
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0065

Related: #7887

Microsoft Reviewers: Open in CodeFlow

@elachlan elachlan requested a review from a team as a code owner October 11, 2022 07:41
@ghost ghost assigned elachlan Oct 11, 2022
@dreddy-work
Copy link
Member

@elachlan , build failures similar to below
src\System.Windows.Forms\src\misc\WeakHashtable.cs#L5
src\System.Windows.Forms\src\misc\WeakHashtable.cs(5,1): error IDE0005: (NETCORE_ENGINEERING_TELEMETRY=Build) Using directive is unnecessary.

@RussKie RussKie merged commit 6ef42ec into dotnet:main Oct 11, 2022
@ghost ghost added this to the 8.0 Preview1 milestone Oct 11, 2022
@RussKie RussKie added the code cleanup cleanup code for unused apis/properties/comments - no functional changes. label Oct 11, 2022
@elachlan elachlan deleted the IDE0065 branch October 12, 2022 01:47
v-elnovikova pushed a commit to v-elnovikova/winforms that referenced this pull request Oct 18, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

code cleanup cleanup code for unused apis/properties/comments - no functional changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants