From 165a8c9e0ec8658cfac5f1f6e80b3f91aa7c9a1c Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Wed, 11 Dec 2024 13:51:22 -0600 Subject: [PATCH] Fix style issues becoming warnings even when configured :silent --- src/.editorconfig | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/.editorconfig b/src/.editorconfig index 48fc978..22e4e1e 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -132,8 +132,19 @@ csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimenta #### Analyzers #### # Keep this last among C# settings so the IDE will add new configuration here. -# Treat everything as warning by default. They will be treated as errors in Release builds. -dotnet_analyzer_diagnostic.severity = warning +# Treat everything but style as warning by default. They will be treated as errors in Release builds. +# Don't set anything for category-Style as that will override any `:silent` configuration for style preferences above. +dotnet_analyzer_diagnostic.category-Design.severity = warning +dotnet_analyzer_diagnostic.category-Documentation.severity = warning +dotnet_analyzer_diagnostic.category-Globalization.severity = warning +dotnet_analyzer_diagnostic.category-Interoperability.severity = warning +dotnet_analyzer_diagnostic.category-Maintainability.severity = warning +dotnet_analyzer_diagnostic.category-Naming.severity = warning +dotnet_analyzer_diagnostic.category-Performance.severity = warning +dotnet_analyzer_diagnostic.category-SingleFile.severity = warning +dotnet_analyzer_diagnostic.category-Reliability.severity = warning +dotnet_analyzer_diagnostic.category-Security.severity = warning +dotnet_analyzer_diagnostic.category-Usage.severity = warning # IDE0130: Namespace does not match folder structure dotnet_diagnostic.IDE0130.severity = silent