|
@@ -5,21 +5,176 @@ root = true
|
5
|
5
|
end_of_line = crlf
|
6
|
6
|
charset = utf-8-bom
|
7
|
7
|
indent_size = 4
|
8
|
|
-insert_final_newline = true
|
9
|
8
|
tab_width = 4
|
10
|
9
|
trim_trailing_whitespace = true
|
11
|
10
|
resharper_xaml_binding_without_context_not_resolved_highlighting = none
|
12
|
11
|
resharper_xaml_binding_with_context_not_resolved_highlighting = none
|
13
|
12
|
|
14
|
13
|
# ReSharper properties
|
|
14
|
+resharper_apply_auto_detected_rules = false
|
15
|
15
|
resharper_apply_on_completion = true
|
|
16
|
+resharper_blank_lines_after_block_statements = 0
|
|
17
|
+resharper_blank_lines_after_start_comment = 0
|
|
18
|
+resharper_blank_lines_around_local_method = 0
|
|
19
|
+resharper_braces_for_for = required
|
|
20
|
+resharper_braces_for_foreach = required
|
|
21
|
+resharper_braces_for_ifelse = required
|
|
22
|
+resharper_braces_for_while = required
|
|
23
|
+resharper_braces_redundant = false
|
|
24
|
+resharper_case_block_braces = next_line_shifted_2
|
|
25
|
+resharper_csharp_keep_blank_lines_in_code = 0
|
|
26
|
+resharper_csharp_keep_blank_lines_in_declarations = 1
|
16
|
27
|
resharper_csharp_max_line_length = 300
|
|
28
|
+resharper_csharp_naming_rule.constants = AA_BB
|
|
29
|
+resharper_csharp_naming_rule.interfaces = I + AaBb
|
|
30
|
+resharper_csharp_naming_rule.static_readonly = AaBb
|
|
31
|
+resharper_csharp_naming_rule.types_and_namespaces = AaBb, I + AaBb + I
|
|
32
|
+resharper_csharp_wrap_arguments_style = chop_if_long
|
|
33
|
+resharper_csharp_wrap_before_declaration_lpar = true
|
|
34
|
+resharper_csharp_wrap_extends_list_style = chop_if_long
|
|
35
|
+resharper_csharp_wrap_parameters_style = chop_if_long
|
|
36
|
+resharper_empty_block_style = together_same_line
|
|
37
|
+resharper_enforce_line_ending_style = true
|
|
38
|
+resharper_keep_existing_declaration_block_arrangement = true
|
|
39
|
+resharper_keep_existing_embedded_block_arrangement = true
|
|
40
|
+resharper_keep_existing_enum_arrangement = true
|
|
41
|
+resharper_keep_existing_expr_member_arrangement = false
|
|
42
|
+resharper_keep_existing_initializer_arrangement = false
|
|
43
|
+resharper_keep_existing_linebreaks = false
|
17
|
44
|
resharper_max_array_initializer_elements_on_line = 2
|
18
|
45
|
resharper_max_attribute_length_for_same_line = 2
|
19
|
46
|
resharper_max_enum_members_on_line = 2
|
20
|
47
|
resharper_max_formal_parameters_on_line = 2
|
21
|
48
|
resharper_max_initializer_elements_on_line = 2
|
22
|
49
|
resharper_max_invocation_arguments_on_line = 2
|
|
50
|
+resharper_new_line_before_while = true
|
|
51
|
+resharper_show_autodetect_configure_formatting_tip = false
|
|
52
|
+resharper_use_indent_from_vs = false
|
|
53
|
+resharper_wrap_after_declaration_lpar = true
|
|
54
|
+resharper_wrap_after_invocation_lpar = true
|
|
55
|
+resharper_wrap_array_initializer_style = chop_if_long
|
|
56
|
+resharper_wrap_before_declaration_rpar = true
|
|
57
|
+resharper_wrap_before_invocation_rpar = true
|
|
58
|
+resharper_wrap_chained_binary_expressions = chop_if_long
|
|
59
|
+resharper_wrap_chained_binary_patterns = chop_if_long
|
|
60
|
+resharper_wrap_chained_method_calls = chop_if_long
|
|
61
|
+resharper_wrap_enum_declaration = chop_if_long
|
|
62
|
+resharper_wrap_list_pattern = chop_if_long
|
|
63
|
+resharper_wrap_switch_expression = chop_if_long
|
|
64
|
+resharper_xmldoc_attribute_style = on_single_line
|
|
65
|
+resharper_xml_attribute_style = on_different_lines
|
|
66
|
+resharper_xml_max_blank_lines_between_tags = 1
|
|
67
|
+resharper_xml_pi_attribute_style = on_different_lines
|
|
68
|
+
|
|
69
|
+# Microsoft .NET properties
|
|
70
|
+csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async, file, required:suggestion
|
|
71
|
+csharp_style_expression_bodied_accessors = true:suggestion
|
|
72
|
+csharp_style_expression_bodied_properties = true:suggestion
|
|
73
|
+csharp_style_namespace_declarations = block_scoped:suggestion
|
|
74
|
+csharp_style_prefer_utf8_string_literals = true:suggestion
|
|
75
|
+csharp_style_var_elsewhere = false:warning
|
|
76
|
+csharp_style_var_for_built_in_types = false:warning
|
|
77
|
+csharp_style_var_when_type_is_apparent = false:warning
|
|
78
|
+csharp_using_directive_placement = inside_namespace:silent
|
|
79
|
+dotnet_naming_rule.constants_rule.import_to_resharper = as_predefined
|
|
80
|
+dotnet_naming_rule.constants_rule.severity = warning
|
|
81
|
+dotnet_naming_rule.constants_rule.style = all_upper_style
|
|
82
|
+dotnet_naming_rule.constants_rule.symbols = constants_symbols
|
|
83
|
+dotnet_naming_rule.interface_should_be_begins_with_i_rule.import_to_resharper = as_predefined
|
|
84
|
+dotnet_naming_rule.interface_should_be_begins_with_i_rule.severity = warning
|
|
85
|
+dotnet_naming_rule.interface_should_be_begins_with_i_rule.style = i_upper_camel_case_style
|
|
86
|
+dotnet_naming_rule.interface_should_be_begins_with_i_rule.symbols = interface_should_be_begins_with_i_symbols
|
|
87
|
+dotnet_naming_rule.method_should_be_pascal_case_rule.import_to_resharper = as_predefined
|
|
88
|
+dotnet_naming_rule.method_should_be_pascal_case_rule.severity = warning
|
|
89
|
+dotnet_naming_rule.method_should_be_pascal_case_rule.style = upper_camel_case_style
|
|
90
|
+dotnet_naming_rule.method_should_be_pascal_case_rule.symbols = method_should_be_pascal_case_symbols
|
|
91
|
+dotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefined
|
|
92
|
+dotnet_naming_rule.private_constants_rule.severity = warning
|
|
93
|
+dotnet_naming_rule.private_constants_rule.style = all_upper_style
|
|
94
|
+dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
|
|
95
|
+dotnet_naming_rule.property_rule.import_to_resharper = as_predefined
|
|
96
|
+dotnet_naming_rule.property_rule.severity = none
|
|
97
|
+dotnet_naming_rule.property_rule.style = upper_camel_case_style
|
|
98
|
+dotnet_naming_rule.property_rule.symbols = property_symbols
|
|
99
|
+dotnet_naming_rule.public_fields_rule.import_to_resharper = as_predefined
|
|
100
|
+dotnet_naming_rule.public_fields_rule.severity = none
|
|
101
|
+dotnet_naming_rule.public_fields_rule.style = upper_camel_case_style
|
|
102
|
+dotnet_naming_rule.public_fields_rule.symbols = public_fields_symbols
|
|
103
|
+dotnet_naming_rule.static_readonly_rule.import_to_resharper = as_predefined
|
|
104
|
+dotnet_naming_rule.static_readonly_rule.severity = warning
|
|
105
|
+dotnet_naming_rule.static_readonly_rule.style = upper_camel_case_style
|
|
106
|
+dotnet_naming_rule.static_readonly_rule.symbols = static_readonly_symbols
|
|
107
|
+dotnet_naming_rule.types_and_namespaces_rule.import_to_resharper = as_predefined
|
|
108
|
+dotnet_naming_rule.types_and_namespaces_rule.resharper_style = AaBb, I + AaBb + I
|
|
109
|
+dotnet_naming_rule.types_and_namespaces_rule.severity = warning
|
|
110
|
+dotnet_naming_rule.types_and_namespaces_rule.style = upper_camel_case_style
|
|
111
|
+dotnet_naming_rule.types_and_namespaces_rule.symbols = types_and_namespaces_symbols
|
|
112
|
+dotnet_naming_rule.types_should_be_pascal_case_rule.import_to_resharper = True
|
|
113
|
+dotnet_naming_rule.types_should_be_pascal_case_rule.resharper_description = types_should_be_pascal_case
|
|
114
|
+dotnet_naming_rule.types_should_be_pascal_case_rule.resharper_guid = a43c3ac7-d8a7-48b2-8484-495fe7e8c999
|
|
115
|
+dotnet_naming_rule.types_should_be_pascal_case_rule.severity = warning
|
|
116
|
+dotnet_naming_rule.types_should_be_pascal_case_rule.style = upper_camel_case_style
|
|
117
|
+dotnet_naming_rule.types_should_be_pascal_case_rule.symbols = types_should_be_pascal_case_symbols
|
|
118
|
+dotnet_naming_style.all_upper_style.capitalization = all_upper
|
|
119
|
+dotnet_naming_style.all_upper_style.word_separator = _
|
|
120
|
+dotnet_naming_style.i_upper_camel_case_style.capitalization = pascal_case
|
|
121
|
+dotnet_naming_style.i_upper_camel_case_style.required_prefix = I
|
|
122
|
+dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
|
|
123
|
+dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
|
|
124
|
+dotnet_naming_symbols.constants_symbols.applicable_kinds = field
|
|
125
|
+dotnet_naming_symbols.constants_symbols.required_modifiers = const
|
|
126
|
+dotnet_naming_symbols.interface_should_be_begins_with_i_symbols.applicable_accessibilities = local,public,internal,private,protected,protected_internal,private_protected
|
|
127
|
+dotnet_naming_symbols.interface_should_be_begins_with_i_symbols.applicable_kinds = interface
|
|
128
|
+dotnet_naming_symbols.interface_should_be_begins_with_i_symbols.resharper_applicable_kinds = interface
|
|
129
|
+dotnet_naming_symbols.interface_should_be_begins_with_i_symbols.resharper_required_modifiers = any
|
|
130
|
+dotnet_naming_symbols.method_should_be_pascal_case_symbols.applicable_accessibilities = local,public,internal,private,protected,protected_internal,private_protected
|
|
131
|
+dotnet_naming_symbols.method_should_be_pascal_case_symbols.applicable_kinds = method
|
|
132
|
+dotnet_naming_symbols.method_should_be_pascal_case_symbols.resharper_applicable_kinds = method
|
|
133
|
+dotnet_naming_symbols.method_should_be_pascal_case_symbols.resharper_required_modifiers = any
|
|
134
|
+dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
|
|
135
|
+dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
|
|
136
|
+dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
|
|
137
|
+dotnet_naming_symbols.property_symbols.applicable_accessibilities = *
|
|
138
|
+dotnet_naming_symbols.property_symbols.applicable_kinds = property
|
|
139
|
+dotnet_naming_symbols.public_fields_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
|
|
140
|
+dotnet_naming_symbols.public_fields_symbols.applicable_kinds = field
|
|
141
|
+dotnet_naming_symbols.static_readonly_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected
|
|
142
|
+dotnet_naming_symbols.static_readonly_symbols.applicable_kinds = field
|
|
143
|
+dotnet_naming_symbols.static_readonly_symbols.required_modifiers = static,readonly
|
|
144
|
+dotnet_naming_symbols.types_and_namespaces_symbols.applicable_accessibilities = *
|
|
145
|
+dotnet_naming_symbols.types_and_namespaces_symbols.applicable_kinds = namespace,class,struct,enum,delegate
|
|
146
|
+dotnet_naming_symbols.types_should_be_pascal_case_symbols.applicable_accessibilities = local,public,internal,private,protected,protected_internal,private_protected
|
|
147
|
+dotnet_naming_symbols.types_should_be_pascal_case_symbols.applicable_kinds = class,struct,interface,enum
|
|
148
|
+dotnet_naming_symbols.types_should_be_pascal_case_symbols.resharper_applicable_kinds = class,struct,interface,enum
|
|
149
|
+dotnet_naming_symbols.types_should_be_pascal_case_symbols.resharper_required_modifiers = any
|
|
150
|
+dotnet_separate_import_directive_groups = true
|
|
151
|
+dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:none
|
|
152
|
+dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
|
|
153
|
+dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:none
|
|
154
|
+dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
|
|
155
|
+dotnet_style_predefined_type_for_member_access = true:suggestion
|
|
156
|
+dotnet_style_qualification_for_event = false:suggestion
|
|
157
|
+dotnet_style_qualification_for_field = false:suggestion
|
|
158
|
+dotnet_style_qualification_for_method = false:suggestion
|
|
159
|
+dotnet_style_qualification_for_property = false:suggestion
|
|
160
|
+dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
|
|
161
|
+
|
|
162
|
+# ReSharper inspection severities
|
|
163
|
+resharper_arrange_namespace_body_highlighting = hint
|
|
164
|
+resharper_arrange_static_member_qualifier_highlighting = none
|
|
165
|
+resharper_arrange_this_qualifier_highlighting = hint
|
|
166
|
+resharper_arrange_type_member_modifiers_highlighting = hint
|
|
167
|
+resharper_arrange_type_modifiers_highlighting = hint
|
|
168
|
+resharper_built_in_type_reference_style_for_member_access_highlighting = hint
|
|
169
|
+resharper_built_in_type_reference_style_highlighting = hint
|
|
170
|
+resharper_check_namespace_highlighting = none
|
|
171
|
+resharper_convert_to_using_declaration_highlighting = hint
|
|
172
|
+resharper_not_accessed_field_local_highlighting = none
|
|
173
|
+resharper_redundant_base_qualifier_highlighting = warning
|
|
174
|
+resharper_redundant_name_qualifier_highlighting = none
|
|
175
|
+resharper_suggest_discard_declaration_var_style_highlighting = suggestion
|
|
176
|
+resharper_unused_member_global_highlighting = none
|
|
177
|
+resharper_unused_member_local_highlighting = none
|
23
|
178
|
|
24
|
179
|
# c# 文件
|
25
|
180
|
[*.cs]
|
|
@@ -67,12 +222,12 @@ dotnet_style_collection_initializer = true
|
67
|
222
|
dotnet_style_explicit_tuple_names = true
|
68
|
223
|
dotnet_style_namespace_match_folder = true
|
69
|
224
|
dotnet_style_null_propagation = true
|
70
|
|
-dotnet_style_object_initializer = true
|
|
225
|
+dotnet_style_object_initializer = true:silent
|
71
|
226
|
dotnet_style_operator_placement_when_wrapping = beginning_of_line
|
72
|
227
|
dotnet_style_prefer_auto_properties = true
|
73
|
228
|
dotnet_style_prefer_compound_assignment = true
|
74
|
|
-dotnet_style_prefer_conditional_expression_over_assignment = true
|
75
|
|
-dotnet_style_prefer_conditional_expression_over_return = true
|
|
229
|
+dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
|
|
230
|
+dotnet_style_prefer_conditional_expression_over_return = true:suggestion
|
76
|
231
|
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
|
77
|
232
|
dotnet_style_prefer_inferred_anonymous_type_member_names = true
|
78
|
233
|
dotnet_style_prefer_inferred_tuple_names = true
|
|
@@ -81,7 +236,7 @@ dotnet_style_prefer_simplified_boolean_expressions = true
|
81
|
236
|
dotnet_style_prefer_simplified_interpolation = true
|
82
|
237
|
|
83
|
238
|
# 字段首选项
|
84
|
|
-dotnet_style_readonly_field = true:silent
|
|
239
|
+dotnet_style_readonly_field = false:silent
|
85
|
240
|
|
86
|
241
|
# 参数首选项
|
87
|
242
|
dotnet_code_quality_unused_parameters = all
|
|
@@ -111,20 +266,20 @@ csharp_style_expression_bodied_operators = false
|
111
|
266
|
csharp_style_expression_bodied_properties = true
|
112
|
267
|
|
113
|
268
|
# 模式匹配首选项
|
114
|
|
-csharp_style_pattern_matching_over_as_with_null_check = true
|
115
|
|
-csharp_style_pattern_matching_over_is_with_cast_check = true
|
|
269
|
+csharp_style_pattern_matching_over_as_with_null_check = true:warning
|
|
270
|
+csharp_style_pattern_matching_over_is_with_cast_check = true:warning
|
116
|
271
|
csharp_style_prefer_extended_property_pattern = true
|
117
|
|
-csharp_style_prefer_not_pattern = true
|
118
|
|
-csharp_style_prefer_pattern_matching = true
|
|
272
|
+csharp_style_prefer_not_pattern = true:warning
|
|
273
|
+csharp_style_prefer_pattern_matching = true:warning
|
119
|
274
|
csharp_style_prefer_switch_expression = true
|
120
|
275
|
|
121
|
276
|
# Null 检查首选项
|
122
|
|
-csharp_style_conditional_delegate_call = false
|
|
277
|
+csharp_style_conditional_delegate_call = true
|
123
|
278
|
|
124
|
279
|
# 修饰符首选项
|
125
|
|
-csharp_prefer_static_local_function = true:silent
|
|
280
|
+csharp_prefer_static_local_function = false:silent
|
126
|
281
|
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
|
127
|
|
-csharp_style_prefer_readonly_struct = true:silent
|
|
282
|
+csharp_style_prefer_readonly_struct = false:silent
|
128
|
283
|
csharp_style_prefer_readonly_struct_member = true
|
129
|
284
|
|
130
|
285
|
# 代码块首选项
|
|
@@ -145,12 +300,12 @@ csharp_style_prefer_null_check_over_type_check = true
|
145
|
300
|
csharp_style_prefer_range_operator = true
|
146
|
301
|
csharp_style_prefer_tuple_swap = true
|
147
|
302
|
csharp_style_prefer_utf8_string_literals = true
|
148
|
|
-csharp_style_throw_expression = false
|
|
303
|
+csharp_style_throw_expression = true
|
149
|
304
|
csharp_style_unused_value_assignment_preference = discard_variable
|
150
|
305
|
csharp_style_unused_value_expression_statement_preference = discard_variable
|
151
|
306
|
|
152
|
307
|
# "using" 指令首选项
|
153
|
|
-csharp_using_directive_placement = inside_namespace
|
|
308
|
+csharp_using_directive_placement = inside_namespace:warning
|
154
|
309
|
|
155
|
310
|
# 新行首选项
|
156
|
311
|
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
|
|
@@ -247,3 +402,8 @@ dotnet_naming_style.begins_with_i.required_prefix = I
|
247
|
402
|
dotnet_naming_style.begins_with_i.required_suffix =
|
248
|
403
|
dotnet_naming_style.begins_with_i.word_separator =
|
249
|
404
|
dotnet_naming_style.begins_with_i.capitalization = pascal_case
|
|
405
|
+
|
|
406
|
+[*.{appxmanifest,asax,ascx,aspx,axaml,axml,build,config,cs,cshtml,csproj,css,dbml,discomap,dtd,htm,html,jsproj,lsproj,master,njsproj,nuspec,paml,proj,props,razor,resw,resx,skin,StyleCop,targets,tasks,vb,vbproj,xaml,xamlx,xml,xoml,xsd}]
|
|
407
|
+indent_style = space
|
|
408
|
+indent_size = 4
|
|
409
|
+tab_width = 4
|