From 847c919ecf23fb9b4466afdbed6ef1a0e9621611 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 13 Dec 2024 15:33:56 +1100 Subject: [PATCH] refs --- src/.editorconfig | 37 ++++++++++++++++++++++++++++++------ src/Directory.Packages.props | 14 +++++++------- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/src/.editorconfig b/src/.editorconfig index 030262253..f0d346952 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -1,12 +1,8 @@ root = true -# EditorConfig: http://EditorConfig.org - -# top-most EditorConfig file [*] indent_style = space - [*.cs] indent_size = 4 charset = utf-8 @@ -17,12 +13,42 @@ resharper_redundant_accessor_body_highlighting = error # Replace with field keyword resharper_replace_with_field_keyword_highlighting = error +# Replace with single call to Single(..) +resharper_replace_with_single_call_to_single_highlighting = error + +# Replace with single call to SingleOrDefault(..) +resharper_replace_with_single_call_to_single_or_default_highlighting = error + +# Replace with single call to LastOrDefault(..) +resharper_replace_with_single_call_to_last_or_default_highlighting = error + +# Replace with single call to Last(..) +resharper_replace_with_single_call_to_last_highlighting = error + +# Replace with single call to First(..) +resharper_replace_with_single_call_to_first_highlighting = error + +# Replace with single call to FirstOrDefault(..) +resharper_replace_with_single_call_to_first_or_default_highlighting = error + +# Replace with single call to Any(..) +resharper_replace_with_single_call_to_any_highlighting = error + +# Replace with single call to Count(..) +resharper_replace_with_single_call_to_count_highlighting = error + # Declare types in namespaces -dotnet_diagnostic.CA1050.severity = None +dotnet_diagnostic.CA1050.severity = none # Use Literals Where Appropriate dotnet_diagnostic.CA1802.severity = error +# Potentially misleading parameter name in lambda or local function +resharper_all_underscore_local_parameter_name_highlighting = none + +# Redundant explicit collection creation in argument of 'params' parameter +resharper_redundant_explicit_params_array_creation_highlighting = error + # Do not initialize unnecessarily dotnet_diagnostic.CA1805.severity = error @@ -152,7 +178,6 @@ dotnet_diagnostic.CA1869.severity = error # Use a cached 'SearchValues' instance dotnet_diagnostic.CA1870.severity = error - # Microsoft .NET properties trim_trailing_whitespace = true csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 24d57dd07..27ab4b918 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -4,10 +4,10 @@ true - - + + - + @@ -22,16 +22,16 @@ - + - + - - + +