Skip to content

Commit b5f7098

Browse files
committed
Update code style settings and package versions
- Enhanced .editorconfig settings for code style preferences, including collection expressions and async method naming rules. - Upgraded `Swashbuckle.AspNetCore` to version `8.1.4` across multiple project files. - Updated `Swashbuckle.AspNetCore.Annotations` and `Swashbuckle.AspNetCore.SwaggerUI` to version `8.1.4` in `JwtBearerSample.csproj`. - Adjusted `Microsoft.AspNetCore.OpenApi` version to `[8.0.16,9.0.0)` in `Net8JwtBearerSample.csproj`. - Ensured consistent package versions for `Swashbuckle.AspNetCore` across all relevant projects.
1 parent 64735d0 commit b5f7098

9 files changed

Lines changed: 29 additions & 25 deletions

File tree

.editorconfig

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dotnet_style_operator_placement_when_wrapping = beginning_of_line
2222
dotnet_style_object_initializer = true:suggestion
2323
dotnet_style_coalesce_expression = true:suggestion
2424
dotnet_style_collection_initializer = true:suggestion
25+
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
2526
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
2627
dotnet_style_prefer_conditional_expression_over_assignment = false:silent
2728
dotnet_style_prefer_conditional_expression_over_return = false:silent
@@ -244,48 +245,48 @@ dotnet_naming_rule.async_method_should_be_ends_with_async.style = ends_with_asyn
244245

245246
dotnet_naming_symbols.interface.applicable_kinds = interface
246247
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
247-
dotnet_naming_symbols.interface.required_modifiers =
248+
dotnet_naming_symbols.interface.required_modifiers =
248249

249250
dotnet_naming_symbols.method.applicable_kinds = method
250251
dotnet_naming_symbols.method.applicable_accessibilities = public
251-
dotnet_naming_symbols.method.required_modifiers =
252+
dotnet_naming_symbols.method.required_modifiers =
252253

253254
dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
254255
dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
255-
dotnet_naming_symbols.private_or_internal_field.required_modifiers =
256+
dotnet_naming_symbols.private_or_internal_field.required_modifiers =
256257

257258
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
258259
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
259-
dotnet_naming_symbols.types.required_modifiers =
260+
dotnet_naming_symbols.types.required_modifiers =
260261

261262
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
262263
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
263-
dotnet_naming_symbols.non_field_members.required_modifiers =
264+
dotnet_naming_symbols.non_field_members.required_modifiers =
264265

265266
dotnet_naming_symbols.async_method.applicable_kinds = method
266267
dotnet_naming_symbols.async_method.applicable_accessibilities = *
267268
dotnet_naming_symbols.async_method.required_modifiers = async
268269

269270
# Naming styles
270271

271-
dotnet_naming_style.pascal_case.required_prefix =
272-
dotnet_naming_style.pascal_case.required_suffix =
273-
dotnet_naming_style.pascal_case.word_separator =
272+
dotnet_naming_style.pascal_case.required_prefix =
273+
dotnet_naming_style.pascal_case.required_suffix =
274+
dotnet_naming_style.pascal_case.word_separator =
274275
dotnet_naming_style.pascal_case.capitalization = pascal_case
275276

276277
dotnet_naming_style.begins_with_i.required_prefix = I
277-
dotnet_naming_style.begins_with_i.required_suffix =
278-
dotnet_naming_style.begins_with_i.word_separator =
278+
dotnet_naming_style.begins_with_i.required_suffix =
279+
dotnet_naming_style.begins_with_i.word_separator =
279280
dotnet_naming_style.begins_with_i.capitalization = pascal_case
280281

281-
dotnet_naming_style.camel_case.required_prefix =
282-
dotnet_naming_style.camel_case.required_suffix =
283-
dotnet_naming_style.camel_case.word_separator =
282+
dotnet_naming_style.camel_case.required_prefix =
283+
dotnet_naming_style.camel_case.required_suffix =
284+
dotnet_naming_style.camel_case.word_separator =
284285
dotnet_naming_style.camel_case.capitalization = camel_case
285286

286-
dotnet_naming_style.ends_with_async.required_prefix =
287+
dotnet_naming_style.ends_with_async.required_prefix =
287288
dotnet_naming_style.ends_with_async.required_suffix = Async
288-
dotnet_naming_style.ends_with_async.word_separator =
289+
dotnet_naming_style.ends_with_async.word_separator =
289290
dotnet_naming_style.ends_with_async.capitalization = pascal_case
290291

291292
# IDE0058: Expression value is never used
@@ -295,4 +296,7 @@ dotnet_diagnostic.IDE0058.severity = none
295296
dotnet_diagnostic.IDE0010.severity = none
296297

297298
# IDE0072: Add missing cases
298-
dotnet_diagnostic.IDE0072.severity = none
299+
dotnet_diagnostic.IDE0072.severity = none
300+
301+
# IDE0305: Simplify collection initialization
302+
dotnet_diagnostic.IDE0305.severity = none

samples/Controllers/ApiKeySample/ApiKeySample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.3" />
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

samples/Controllers/BasicAuthenticationSample/BasicAuthenticationSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.3" />
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

samples/Controllers/JwtBearerSample/JwtBearerSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.3" />
11-
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="8.1.3" />
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
11+
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="8.1.4" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

samples/MinimalApis/ApiKeySample/ApiKeySample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5" />
11-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.3" />
11+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

samples/MinimalApis/BasicAuthenticationSample/BasicAuthenticationSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5" />
11-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.3" />
11+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

samples/MinimalApis/JwtBearerSample/JwtBearerSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5" />
11-
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="8.1.3" />
11+
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="8.1.4" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

samples/MinimalApis/Net8JwtBearerSample/Net8JwtBearerSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="[8.0.16,9.0.0)" />
11-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.3" />
11+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

src/SimpleAuthentication.Swashbuckle/SimpleAuthentication.Swashbuckle.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<ItemGroup>
3535
<PackageReference Include="SimpleAuthenticationTools.Abstractions" Version="3.0.7" />
36-
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="8.1.3" />
36+
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="8.1.4" />
3737
</ItemGroup>
3838

3939
<ItemGroup>

0 commit comments

Comments
 (0)