Skip to content

Commit

Permalink
Prepare for .NET 8 #150 (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Jan 17, 2024
1 parent 6177b4c commit 3471b1e
Show file tree
Hide file tree
Showing 31 changed files with 1,165 additions and 1,281 deletions.
178 changes: 0 additions & 178 deletions .azure-pipelines/azure-pipelines.yaml

This file was deleted.

102 changes: 0 additions & 102 deletions .azure-pipelines/jobs/test.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions .azure-pipelines/jobs/testContainer.yaml

This file was deleted.

13 changes: 12 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ indent_size = 2
[*.cs]

# Code style defaults
csharp_using_directive_placement = outside_namespace:suggestion
csharp_using_directive_placement = outside_namespace:error
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
dotnet_sort_system_directives_first = true
dotnet_style_readonly_field = true:suggestion
csharp_style_namespace_declarations = file_scoped:error

# License header
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.
dotnet_diagnostic.IDE0073.severity = error

# Suggest more modern language features when available
dotnet_style_object_initializer = true:suggestion
Expand All @@ -42,9 +45,17 @@ dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion

# Pattern matching
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_switch_expression = false:none
csharp_style_prefer_pattern_matching = false:none

# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_var_elsewhere = true:suggestion

# Define the 'private_fields' symbol group:
Expand Down
Loading

0 comments on commit 3471b1e

Please sign in to comment.