-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
47 lines (38 loc) · 1.73 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
43
44
45
46
47
root = true
[*]
indent_style = space
indent_size = 4
tab_width = 4
# Prefer "this." only for fields
[*.cs]
dotnet_style_qualification_for_field = true:error
dotnet_style_qualification_for_property = false:warning
dotnet_style_qualification_for_method = false:warning
dotnet_style_qualification_for_event = false:warning
# Prefer predefined types (string, int) over .NET classes (String, Int32)
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = false:suggestion
# Prefer using initializers
dotnet_style_object_initializer = true:warning
dotnet_style_collection_initializer = true:error
# Prefer tuple member names over Item1/Item2
dotnet_style_explicit_tuple_names = true:suggestion
# Prefer syntactical sugar for null handling
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
# Avoid var unless the typing is explicit
csharp_style_var_for_built_in_types = false:error
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = false:warning
# Prefer expression bodied members
csharp_style_expression_bodied_methods = true:none
csharp_style_expression_bodied_operators = true:none
csharp_style_expression_bodied_properties = true:none
csharp_style_expression_bodied_indexers = true:none
csharp_style_expression_bodied_accessors = true:none
# Prefer pattern matching and other C#6/7 niceness
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_pattern_matching_over_as_with_null_check = true:warning
csharp_style_inlined_variable_declaration = true:warning
csharp_style_throw_expression = true:warning
csharp_style_conditional_delegate_call = true:warning