From a35dfa12d74b2fbb5fb2688c2ec0eca0fbfb2144 Mon Sep 17 00:00:00 2001 From: brian-reichle <18721383+brian-reichle@users.noreply.github.com> Date: Fri, 13 Feb 2026 20:20:55 +1000 Subject: [PATCH] Enable 'Recommended' rules. --- .editorconfig | 3 +++ Directory.Build.props | 1 + src/TypeNameInterpretation.Benchmark/Program.cs | 2 +- src/TypeNameInterpretation.Test/.editorconfig | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/TypeNameInterpretation.Test/.editorconfig diff --git a/.editorconfig b/.editorconfig index 7cd089a..5c3f827 100644 --- a/.editorconfig +++ b/.editorconfig @@ -98,6 +98,9 @@ csharp_new_line_between_query_expression_clauses = true dotnet_diagnostic.CA1510.severity = none +# CA1720 tries to take ownership of identifier names that it shouldn't. +dotnet_diagnostic.CA1720.severity = none + # This is a nonsense requirement. dotnet_diagnostic.IDE0130.severity = none diff --git a/Directory.Build.props b/Directory.Build.props index e0a8a21..94c2515 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -15,6 +15,7 @@ CS1591 - Missing XML comment. 14.0 enable true + Recommended true 1.0.0 diff --git a/src/TypeNameInterpretation.Benchmark/Program.cs b/src/TypeNameInterpretation.Benchmark/Program.cs index 6ebf54d..89d7ea3 100644 --- a/src/TypeNameInterpretation.Benchmark/Program.cs +++ b/src/TypeNameInterpretation.Benchmark/Program.cs @@ -3,7 +3,7 @@ namespace TypeNameInterpretation.Benchmark { - class Program + static class Program { static void Main(string[] args) { diff --git a/src/TypeNameInterpretation.Test/.editorconfig b/src/TypeNameInterpretation.Test/.editorconfig new file mode 100644 index 0000000..3e54b2d --- /dev/null +++ b/src/TypeNameInterpretation.Test/.editorconfig @@ -0,0 +1,4 @@ +[*.cs] + +# Making unit tests sealed often causes other issues. +dotnet_diagnostic.CA1852.severity = none