From 60831a091288a62718624214c9c9f102fa0f9242 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Thu, 1 Jun 2023 09:21:02 -0400 Subject: [PATCH] Update to v4.1.0 --- .editorconfig | 27 ++++++++++++++-- .../Ardalis.ApiEndpoints.NSwag.csproj | 30 ++++++++--------- .../Ardalis.ApiEndpoints.Swashbuckle.csproj | 32 +++++++++---------- .../Ardalis.ApiEndpoints.csproj | 6 ++-- 4 files changed, 57 insertions(+), 38 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0ee5819..e5d8adc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,7 +7,7 @@ indent_style = space # Code files [*.{cs,csx,vb,vbx}] -indent_size =2 +indent_size = 2 insert_final_newline = true charset = utf-8-bom ############################### @@ -54,11 +54,17 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case # Use PascalCase for constant fields dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields -dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style dotnet_naming_symbols.constant_fields.applicable_kinds = field dotnet_naming_symbols.constant_fields.applicable_accessibilities = * dotnet_naming_symbols.constant_fields.required_modifiers = const -tab_width=2 +tab_width= 2 +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion +dotnet_style_prefer_compound_assignment = true:suggestion +dotnet_style_prefer_simplified_interpolation = true:suggestion +dotnet_style_namespace_match_folder = true:suggestion +dotnet_style_operator_placement_when_wrapping = beginning_of_line +end_of_line = crlf ############################### # C# Coding Conventions # ############################### @@ -118,6 +124,21 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false # Wrapping preferences csharp_preserve_single_line_statements = true csharp_preserve_single_line_blocks = true +csharp_using_directive_placement = outside_namespace:silent +csharp_prefer_simple_using_statement = true:suggestion +csharp_style_namespace_declarations = file_scoped:warning +csharp_style_prefer_method_group_conversion = true:silent +csharp_style_prefer_top_level_statements = true:silent +csharp_style_expression_bodied_lambdas = true:silent +csharp_style_expression_bodied_local_functions = false:silent +csharp_style_prefer_null_check_over_type_check = true:suggestion +csharp_style_prefer_local_over_anonymous_function = true:suggestion +csharp_style_prefer_index_operator = true:suggestion +csharp_style_prefer_range_operator = true:suggestion +csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion +csharp_style_prefer_tuple_swap = true:suggestion +csharp_style_prefer_utf8_string_literals = true:suggestion +csharp_style_unused_value_assignment_preference = discard_variable:suggestion ############################### # VB Coding Conventions # ############################### diff --git a/src/Ardalis.ApiEndpoints.NSwag/Ardalis.ApiEndpoints.NSwag.csproj b/src/Ardalis.ApiEndpoints.NSwag/Ardalis.ApiEndpoints.NSwag.csproj index 8f23b33..001ee13 100644 --- a/src/Ardalis.ApiEndpoints.NSwag/Ardalis.ApiEndpoints.NSwag.csproj +++ b/src/Ardalis.ApiEndpoints.NSwag/Ardalis.ApiEndpoints.NSwag.csproj @@ -1,20 +1,20 @@  - - Ardalis.ApiEndpoints.NSwag - 4.0.1 - Steve Smith (@ardalis), Maksym Koshovyi - OpenAPI support for ApiEndpoints using NSwag - OpenAPI support for ApiEndpoints using NSwag - api endpoints openapi nswag - - - - - + + Ardalis.ApiEndpoints.NSwag + 4.1.0 + Steve Smith (@ardalis), Maksym Koshovyi + OpenAPI support for ApiEndpoints using NSwag + OpenAPI support for ApiEndpoints using NSwag + api endpoints openapi nswag + - - - + + + + + + + diff --git a/src/Ardalis.ApiEndpoints.Swashbuckle/Ardalis.ApiEndpoints.Swashbuckle.csproj b/src/Ardalis.ApiEndpoints.Swashbuckle/Ardalis.ApiEndpoints.Swashbuckle.csproj index eaae9fe..7e01963 100644 --- a/src/Ardalis.ApiEndpoints.Swashbuckle/Ardalis.ApiEndpoints.Swashbuckle.csproj +++ b/src/Ardalis.ApiEndpoints.Swashbuckle/Ardalis.ApiEndpoints.Swashbuckle.csproj @@ -1,20 +1,20 @@  - - Ardalis.ApiEndpoints.Swashbuckle - 4.0.1 - Steve Smith (@ardalis), Maksym Koshovyi - OpenAPI support for ApiEndpoints using Swashbuckle - OpenAPI support for ApiEndpoints using Swashbuckle - api endpoints openapi swashbuckle - - - - - + + Ardalis.ApiEndpoints.Swashbuckle + 4.1.0 + Steve Smith (@ardalis), Maksym Koshovyi + OpenAPI support for ApiEndpoints using Swashbuckle + OpenAPI support for ApiEndpoints using Swashbuckle + api endpoints openapi swashbuckle + + + + + + + + + - - - - diff --git a/src/Ardalis.ApiEndpoints/Ardalis.ApiEndpoints.csproj b/src/Ardalis.ApiEndpoints/Ardalis.ApiEndpoints.csproj index 568ddba..52f2423 100644 --- a/src/Ardalis.ApiEndpoints/Ardalis.ApiEndpoints.csproj +++ b/src/Ardalis.ApiEndpoints/Ardalis.ApiEndpoints.csproj @@ -11,10 +11,8 @@ An alternative to Controllers for ASP.NET Core API Endpoints. Controllers promote creating bloated classes that lack cohesion. This project provides a simpler alternative that follows SOLID principles. An alternative to Controllers for ASP.NET Core API Endpoints. aspnet asp.net aspnetcore asp.net core api web api rest endpoint controller - See README for breaking changes and migration guide. - - 4.0.1 Updates reference to Ardalis.ApiEndpoints.CodeAnalyzers to non-prerelease. - 4.0.1 + Add IAsyncEnumerable Support; other minor fixes + 4.1.0 Ardalis.ApiEndpoints LICENSE.txt