Add avoid zero-length array allocations rule
MODIFY
.editorconfig
.editorconfig
@@ -245,3 +245,6 @@ csharp_style_pattern_matching_over_as_with_null_check = true:error
# CA2016: Forward the 'CancellationToken' parameter to methods that take one
dotnet_diagnostic.CA2016.severity = warning
+
+# CA1825: Avoid zero-length array allocations
+dotnet_diagnostic.CA1825.severity = warning

Add avoid zero-length array allocations rule