-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.editorconfig
42 lines (32 loc) · 1.35 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Full rule list: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
[*]
trim_trailing_whitespace = true
[*.{csproj,props,targets,config,yml,xml}]
indent_style = space
indent_size = 2
[*.cs]
# Organize usings
dotnet_sort_system_directives_first = false
# Indentation preferences
csharp_indent_case_contents_when_block = false
# var preferences
csharp_style_var_for_built_in_types = false:suggestion
# 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
# Namespace preferences
csharp_style_namespace_declarations = file_scoped:warning
# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = suggestion
# CA1822: Mark members as static
dotnet_diagnostic.CA1822.severity = suggestion