From 13413f2e002ee652f198e241d01da5b5dddd80ee Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Sun, 20 Dec 2020 16:57:57 +0000 Subject: [PATCH] Enable CA1043: Use integral or string argument for indexers https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1043 --- .globalconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.globalconfig b/.globalconfig index 4106685466f..eec60e1d2c0 100644 --- a/.globalconfig +++ b/.globalconfig @@ -105,7 +105,8 @@ dotnet_diagnostic.CA1041.severity = warning # CA1043: Use Integral Or String Argument For Indexers # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1043 -dotnet_diagnostic.CA1043.severity = none +dotnet_diagnostic.CA1043.severity = warning +dotnet_code_quality.ca1043.api_surface = all # CA1044: Properties should not be write only # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044