From accb3acca9df52038633633c4d482d465a6efd8d Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Tue, 11 May 2021 15:24:38 +0100 Subject: [PATCH] Suppress some localization related code analyzer suggestions --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.editorconfig b/.editorconfig index 5b84cc53b..40a77da77 100644 --- a/.editorconfig +++ b/.editorconfig @@ -37,3 +37,18 @@ end_of_line = crlf [*.yml] indent_style = space indent_size = 2 + +# C# source +[*.{cs}] + +# CA1303: Do not pass literals as localized parameters +dotnet_diagnostic.CA1303.severity = none + +# CA1305: Specify IFormatProvider +dotnet_diagnostic.CA1305.severity = none + +# CA1304: Specify CultureInfo +dotnet_diagnostic.CA1304.severity = none + +# CA1307: Specify StringComparison for clarity +dotnet_diagnostic.CA1307.severity = none