-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
90 lines (78 loc) · 4.09 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
root = true
[*]
indent_size = 4
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = true
[*.cs]
csharp_indent_case_contents = true:error
csharp_indent_switch_labels = true:error
csharp_prefer_braces = true:error
csharp_prefer_simple_default_expression = true:error
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
csharp_space_after_cast = true:error
csharp_space_after_keywords_in_control_flow_statements = true:error
csharp_style_conditional_delegate_call = true:error
csharp_style_pattern_matching_over_as_with_null_check = true:error
csharp_style_pattern_matching_over_is_with_cast_check = true:error
csharp_style_var_elsewhere = true:error
csharp_style_var_for_built_in_types = true:error
csharp_style_var_when_type_is_apparent = true:error
dotnet_sort_system_directives_first = true
dotnet_style_coalesce_expression = true:error
dotnet_style_collection_initializer = true:error
dotnet_style_explicit_tuple_names = true:error
dotnet_style_object_initializer = true:error
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_style_predefined_type_for_member_access = true:error
dotnet_style_require_accessibility_modifiers = always:error
# Do not use "this" if possible
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
# Naming styles
dotnet_naming_style.first_word_upper_case_style.capitalization = first_word_upper
dotnet_naming_style.async_suffix_style.required_suffix = Async
dotnet_naming_style.async_suffix_style.capitalization = first_word_upper
dotnet_naming_style.underscore_pascal_case_style.required_prefix = _
dotnet_naming_style.underscore_pascal_case_style.capitalization = first_word_upper
# Public members must be capitalized
dotnet_naming_rule.public_members_must_be_capitalized.symbols = public_symbols
dotnet_naming_rule.public_members_must_be_capitalized.style = first_word_upper_case_style
dotnet_naming_rule.public_members_must_be_capitalized.severity = error
dotnet_naming_symbols.public_symbols.applicable_kinds = property,method,field,event,delegate
dotnet_naming_symbols.public_symbols.applicable_accessibilities = public
# Async method must end in "Async"
dotnet_naming_rule.async_method_must_end_in_async.symbols = async_suffix
dotnet_naming_rule.async_method_must_end_in_async.style = async_suffix_style
dotnet_naming_rule.async_method_must_end_in_async.severity = error
dotnet_naming_symbols.async_suffix.applicable_kinds = method
dotnet_naming_symbols.async_suffix.required_modifiers = async
# Private properties must start with underscore
dotnet_naming_rule.non_public_member_must_be_lower_case.symbols = non_public_symbols
dotnet_naming_rule.non_public_member_must_be_lower_case.severity = error
dotnet_naming_rule.non_public_member_must_be_lower_case.style = underscore_pascal_case_style
dotnet_naming_symbols.non_public_symbols.applicable_kinds = property
dotnet_naming_symbols.non_public_symbols.applicable_accessibilities = private
# Protected properties must be lower-case
dotnet_naming_rule.protected_member_must_be_lower_case.symbols = protected_symbols
dotnet_naming_rule.protected_member_must_be_lower_case.severity = error
dotnet_naming_rule.protected_member_must_be_lower_case.style = first_word_upper_case_style
dotnet_naming_symbols.protected_symbols.applicable_kinds = property
dotnet_naming_symbols.protected_symbols.applicable_accessibilities = protected
# Constant Properties capitalized
dotnet_naming_symbols.const_symbols.required_modifiers = const
dotnet_naming_symbols.const_symbols.applicable_kinds = property
dotnet_naming_rule.const_properties_capitalized.symbols = const_symbols
dotnet_naming_rule.const_properties_capitalized.severity = error
dotnet_naming_rule.const_properties_capitalized.style = first_word_upper_case_style
[*.*proj]
indent_size = 2
indent_style = space
[*.xaml]
indent_size = 2
indent_style = space
[*.{js,json}]
indent_size = 2
indent_style = space