From 3bacd81b8b1f43c721eb9d8944766af9d8262c46 Mon Sep 17 00:00:00 2001 From: penev92 Date: Sun, 9 Jan 2022 21:33:54 +0200 Subject: [PATCH] Added a rule about zero-length array allocations --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index 4bef1b18f9..8144f1f948 100644 --- a/.editorconfig +++ b/.editorconfig @@ -116,6 +116,9 @@ dotnet_diagnostic.IDE0040.severity = warning # Don't prefer braces (for one liners). dotnet_diagnostic.IDE0011.severity = none +# Avoid unnecessary zero-length array allocations. +dotnet_diagnostic.CA1825.severity = warning + ; 4-column tab indentation [*.yaml] indent_style = tab