From c016c9d6f62047680ed325cce94d030e2ac86aa5 Mon Sep 17 00:00:00 2001 From: Alexander Freistetter Date: Mon, 24 Jun 2024 10:46:33 +0200 Subject: [PATCH] disable rules for razor files temporarily until microsoft fixes dotnet format again --- src/Adliance.Buddy.CodeStyle/rules/.editorconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Adliance.Buddy.CodeStyle/rules/.editorconfig b/src/Adliance.Buddy.CodeStyle/rules/.editorconfig index 1e2217c..8b7791d 100644 --- a/src/Adliance.Buddy.CodeStyle/rules/.editorconfig +++ b/src/Adliance.Buddy.CodeStyle/rules/.editorconfig @@ -411,3 +411,13 @@ dotnet_diagnostic.IDE0200.severity = suggestion # CA2016: Forward the 'CancellationToken' parameter to methods that take one dotnet_diagnostic.CA2016.severity = suggestion + +[*.razor.cs] + +# These rules appear to be broken for dotnet format after the .NET 8.0.3 upgrade (8.0.203). +# So we're disabling them for now and hopefully they can be re-enabled in time. +dotnet_diagnostic.IDE0044.severity = none +dotnet_diagnostic.IDE0051.severity = none +dotnet_diagnostic.IDE0060.severity = none +dotnet_diagnostic.CA1822.severity = none +dotnet_diagnostic.CA1823.severity = none \ No newline at end of file