Skip to content

Use suppressors when applying code fixes#53268

Open
corngood wants to merge 2 commits intodotnet:mainfrom
corngood:dotnet-format-codefix-supressor
Open

Use suppressors when applying code fixes#53268
corngood wants to merge 2 commits intodotnet:mainfrom
corngood:dotnet-format-codefix-supressor

Conversation

@corngood
Copy link
Contributor

@corngood corngood commented Mar 4, 2026

#48512 fixed suppressors during analysis, but they aren't run when applying code fixes, which can cause fixes to be applied for diagnostics that should have been suppressed.

This only happens when there's a mix of suppressed and unsuppressed diagnostics, because if all diagnostics of a certain type are suppressed, it will bail out earlier.

I'll try to write a test for this when I get a chance.

@corngood corngood requested a review from a team as a code owner March 4, 2026 23:38
@corngood corngood force-pushed the dotnet-format-codefix-supressor branch from 16ee5d8 to 0809e6b Compare March 9, 2026 15:35
@corngood corngood force-pushed the dotnet-format-codefix-supressor branch from 0809e6b to ad13707 Compare March 9, 2026 15:37
@corngood
Copy link
Contributor Author

corngood commented Mar 9, 2026

I added a test.

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