Skip to content

Instantly share code, notes, and snippets.

@BenMakesGames
Created July 6, 2023 14:10
Show Gist options
  • Save BenMakesGames/0123b052b5e64ca66c7a752e61a587bf to your computer and use it in GitHub Desktop.
Save BenMakesGames/0123b052b5e64ca66c7a752e61a587bf to your computer and use it in GitHub Desktop.
I like turning these .NET suggestions into ERRORS
[*.cs]
dotnet_diagnostic.IDE0005.severity = error # unnecessary using directives
dotnet_diagnostic.IDE0035.severity = error # unreachable code
dotnet_diagnostic.IDE0059.severity = error # unnecessary value assignment
dotnet_diagnostic.IDE0060.severity = error # unused parameter
@BenMakesGames
Copy link
Author

BenMakesGames commented Jul 6, 2023

if you don't like cleaning up EF migrations with unnecessary using System; directives:

[your/path/to/Migrations/*.cs]
generated_code = true                        # works for VS, but not for Rider (yet?)
dotnet_diagnostic.IDE0005.severity = none    # works for both

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