Skip to content

Commit

Permalink
style-change: suppress "IDE0078: Use pattern matching"
Browse files Browse the repository at this point in the history
This inspection broke some of our code:
dotnet/roslyn#75122

On a side note, it turns out that all inspection-fixers can change
code meaning, so none of the inspections are safe.

IDE0078: Use pattern matching:
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0078-ide0260
  • Loading branch information
shpaass committed Sep 16, 2024
1 parent 0fe08c2 commit 1876916
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,9 @@ dotnet_diagnostic.IDE0047.severity = none
# Issue link: https://github.com/have-fun-was-taken/yafc-ce/issues/181
dotnet_diagnostic.IDE0052.severity = none

# Suppress "IDE0078: Use pattern matching" because it breaks code.
# See https://github.com/dotnet/roslyn/issues/75122 for details
csharp_style_prefer_pattern_matching = false:none

# Disable "IDE0130: Namespace does not match folder structure" because VS Code Cleanup applies it automatically and breaks things.
dotnet_style_namespace_match_folder = false

0 comments on commit 1876916

Please # to comment.