diff --git a/src/.editorconfig b/src/.editorconfig index d6d101e..f0d3469 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -1,23 +1,54 @@ root = true -# EditorConfig: http://EditorConfig.org - -# top-most EditorConfig file [*] indent_style = space - [*.cs] indent_size = 4 charset = utf-8 +# Redundant accessor body +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 @@ -147,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 @@ -200,7 +230,8 @@ resharper_field_can_be_made_read_only_local_highlighting = none resharper_merge_into_logical_pattern_highlighting = warning resharper_merge_into_pattern_highlighting = error resharper_method_has_async_overload_highlighting = warning -resharper_partial_type_with_single_part_highlighting = error +# because stop rider giving errors before source generators have run +resharper_partial_type_with_single_part_highlighting = warning resharper_redundant_base_qualifier_highlighting = warning resharper_redundant_cast_highlighting = error resharper_redundant_empty_object_creation_argument_list_highlighting = error diff --git a/src/BlazorApp/BlazorApp.csproj b/src/BlazorApp/BlazorApp.csproj index fe22f7b..626ed46 100644 --- a/src/BlazorApp/BlazorApp.csproj +++ b/src/BlazorApp/BlazorApp.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 true ..\key.snk @@ -9,7 +9,6 @@ - diff --git a/src/BlazorServerApp/BlazorServerApp.csproj b/src/BlazorServerApp/BlazorServerApp.csproj index ced3c10..ac40349 100644 --- a/src/BlazorServerApp/BlazorServerApp.csproj +++ b/src/BlazorServerApp/BlazorServerApp.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable true diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 80892a1..ba0fdb0 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -5,14 +5,12 @@ - - + + - - - + diff --git a/src/Shared.sln.DotSettings b/src/Shared.sln.DotSettings index a10bd3a..a9348d3 100644 --- a/src/Shared.sln.DotSettings +++ b/src/Shared.sln.DotSettings @@ -1,4 +1,6 @@  + False + Quiet True True True diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index 6f0c1c4..6b762d7 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 diff --git a/src/Verify.Blazor/Verify.Blazor.csproj b/src/Verify.Blazor/Verify.Blazor.csproj index 4beae2f..c6dfdcd 100644 --- a/src/Verify.Blazor/Verify.Blazor.csproj +++ b/src/Verify.Blazor/Verify.Blazor.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 Blazor, Verify Extends Verify (https://github.com/VerifyTests/Verify) to allow Blazor component verification.