Skip to content

Commit

Permalink
Update code style configuration in .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeago committed Sep 13, 2021
1 parent 95455ab commit 6f80211
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ csharp_style_expression_bodied_properties = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion

# Null-checking preferences
csharp_style_conditional_delegate_call = true:suggestion
Expand Down Expand Up @@ -219,8 +220,13 @@ dotnet_naming_style.begins_with_i.capitalization = pascal_case

### Code analysis configuration

# Extension methods: null check may be skipped on "this" parameter
dotnet_code_quality.CA1062.exclude_extension_method_this_parameter = true
# Disposables passed to a constructor must be disposed by the constructed object
dotnet_code_quality.dispose_ownership_transfer_at_constructor = true
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none
dotnet_code_quality.CA1303.use_naming_heuristic = false

### StyleCop configuration for rules not affected by stylecop.json

Expand All @@ -232,3 +238,5 @@ dotnet_diagnostic.SX1101.severity = warning
dotnet_diagnostic.SA1309.severity = none
# SX1309: Private instance field names must begin with underscore
dotnet_diagnostic.SX1309.severity = warning
# SA1407: Arithmetic expressions must declare precedence
dotnet_diagnostic.SA1407.severity = none

0 comments on commit 6f80211

Please sign in to comment.