-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.editorconfig
27 lines (21 loc) · 1.01 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Full rule list: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
[*.cs]
# Indentation preferences
csharp_indent_case_contents_when_block = false
# var preferences
csharp_style_var_for_built_in_types = false:warning
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
# Expression-level preferences
csharp_prefer_simple_default_expression = true:warning
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_prefer_compound_assignment = true:warning
dotnet_style_prefer_simplified_interpolation = true:warning
csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_range_operator = true:warning
# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:warning
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_prefer_switch_expression = true:warning
# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = suggestion