From b0b1e72194c64fba4a8f5a654291618bdc6aa763 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Tue, 16 Apr 2024 12:51:46 +0100 Subject: [PATCH] Rules --- .editorconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.editorconfig b/.editorconfig index 3cc612a2..a1ef3142 100644 --- a/.editorconfig +++ b/.editorconfig @@ -196,8 +196,24 @@ roslynator_object_creation_type_style=implicit_when_type_is_obvious #roslynator_use_var_instead_of_implicit_object_creation = true|false roslynator_use_var_instead_of_implicit_object_creation=false +# Use tuple to swap values +dotnet_diagnostic.IDE0180.severity = error +# Remove unnecessary lambda expression +dotnet_diagnostic.IDE0200.severity = error +# Use UTF-8 string literal +dotnet_diagnostic.IDE0230.severity = error +# Use collection expression for array dotnet_diagnostic.IDE0300.severity = error +# Use collection expression for empty dotnet_diagnostic.IDE0301.severity = error +# Use collection expression for stackalloc +dotnet_diagnostic.IDE0302.severity = error +# Use collection expression for Create() +dotnet_diagnostic.IDE0303.severity = error +# Use collection expression for builder +dotnet_diagnostic.IDE0304.severity = error +# Use collection expression for fluent +dotnet_diagnostic.IDE0305.severity = error [*.{appxmanifest,asax,ascx,aspx,build,cshtml,dtd,fs,fsi,fsscript,fsx,master,ml,mli,nuspec,razor,resw,resx,skin,vb,xaml,xamlx,xoml,xsd}] indent_style=space