-
Notifications
You must be signed in to change notification settings - Fork 35
/
.editorconfig
225 lines (202 loc) · 10.9 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
root = true
[*]
charset = utf-8-bom
end_of_line = crlf
indent_style = tab
trim_trailing_whitespace = true
### Code quality ###
dotnet_code_quality.CA1062.null_check_validation_methods = CodeJam.Code.NotNull|CodeJam.Code.GenericNotNull|CodeJam.Code.NotNullNorEmpty|CodeJam.Code.NotNullNorWhiteSpace|CodeJam.Code.NotNullAndItemNotNull|CodeJam.Code.ReturnIfNotNull
### Compiler diagnostic ###
# Do not declare static members on generic types
dotnet_diagnostic.CA1000.severity = none
# Use 'Collection', 'ReadOnlyCollection' or 'KeyedCollection'
dotnet_diagnostic.CA1002.severity = none
# Mark assemblies with CLSCompliant
dotnet_diagnostic.CA1014.severity = none
# Remove the property setter or reduce its accessibiliy because it corresponds to positional argument value
dotnet_diagnostic.CA1019.severity = none
# Use properties where appropriate
dotnet_diagnostic.CA1024.severity = none
# Enum storage should be Int32
dotnet_diagnostic.CA1028.severity = none
# Modify to catch a more specific allowed exception type, or rethrow the exceptoin
dotnet_diagnostic.CA1031.severity = none
# Make class sealed, implement the method non-explicitly, or implement a new method that exposes the functionality
dotnet_diagnostic.CA1033.severity = none
# Do not nest type. Alternatively, change its accessibility so that it is not externally visible.
dotnet_diagnostic.CA1034.severity = none
# Do not declare visible instance fields
dotnet_diagnostic.CA1051.severity = none
# Change the type of parameter to System.Uri
dotnet_diagnostic.CA1054.severity = none
# Remove or refactor the condition(s) to avoid dead code.
dotnet_diagnostic.CA1508.severity = none
# Rename type name to end in ''
dotnet_diagnostic.CA1710.severity = none
# Rename type name so that it does not end in ''
dotnet_diagnostic.CA1711.severity = none
# Rename type so that it is no longer conflicts with the reserved language keyword.
dotnet_diagnostic.CA1716.severity = none
# Identifiers should not contain type names
dotnet_diagnostic.CA1720.severity = none
# The property is confusing given the existence of method. Rename or remove one of these members.
dotnet_diagnostic.CA1721.severity = none
# The type name in whole or in part with the namesapce defined in the .NET Framework.
dotnet_diagnostic.CA1724.severity = none
# Initialize reference type static fields inline
dotnet_diagnostic.CA1810.severity = none
# Comparable should override Equals
dotnet_diagnostic.CA1815.severity = none
# Avoid using cref tags with a prefix
dotnet_diagnostic.CA1200.severity = none
# Internal class that is never instatiated.
dotnet_diagnostic.CA1812.severity = none
# Properties should not return arrays
dotnet_diagnostic.CA1819.severity = none
# Avoid unnecessary zero-length array allocations.
dotnet_diagnostic.CA1825.severity = none
# Exception type is not sufficiently specific
dotnet_diagnostic.CA2201.severity = none
# Provide a method named as an alternative for operator op_Explicit, op_Implicit
dotnet_diagnostic.CA2225.severity = none
# Change to be read-only by removing the property setter
dotnet_diagnostic.CA2227.severity = none
# Random is an insecure random number generator.
dotnet_diagnostic.CA5394.severity = none
### IDE Diagnostic ###
# Indexing can be simplified
dotnet_diagnostic.IDE0056.severity = none
dotnet_diagnostic.IDE0057.severity = none
# 'using' statement can be simplified
dotnet_diagnostic.IDE0063.severity = none
# Remove unnecessary suppression
dotnet_diagnostic.IDE0079.severity = none
### Naming ###
# avoid this. unless absolutely necessary
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
### C# Style ###
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_space_after_cast = false
csharp_preferred_modifier_order = public, protected, internal, private, static, readonly, volatile, new, abstract, virtual, sealed, override, extern, unsafe, async:suggestion
### .NET Style ###
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
dotnet_naming_rule.private_constants_rule.severity = warning
dotnet_naming_rule.private_constants_rule.style = lower_camel_case_style
dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
dotnet_naming_rule.private_static_readonly_rule.severity = warning
dotnet_naming_rule.private_static_readonly_rule.style = lower_camel_case_style
dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
dotnet_naming_style.lower_camel_case_style.required_prefix = _
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly
dotnet_separate_import_directive_groups = true
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:suggestion
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:suggestion
# ReSharper properties
resharper_align_multiline_binary_expressions_chain = false
resharper_apply_auto_detected_rules = false
resharper_blank_lines_around_auto_property = 0
resharper_blank_lines_around_property = 0
resharper_braces_for_dowhile = not_required
resharper_braces_for_fixed = not_required
resharper_braces_for_lock = not_required
resharper_braces_for_using = not_required
resharper_constructor_or_destructor_body = expression_body
resharper_csharp_blank_lines_inside_region = 0
resharper_csharp_empty_block_style = together_same_line
resharper_csharp_keep_blank_lines_in_code = 1
resharper_csharp_keep_blank_lines_in_declarations = 1
resharper_csharp_wrap_after_declaration_lpar = true
resharper_csharp_wrap_after_invocation_lpar = true
resharper_csharp_wrap_before_binary_opsign = true
resharper_csharp_wrap_before_first_type_parameter_constraint = true
resharper_csharp_wrap_parameters_style = chop_if_long
resharper_int_align_declaration_names = true
resharper_keep_existing_expr_member_arrangement = false
resharper_keep_existing_initializer_arrangement = false
resharper_keep_existing_linebreaks = false
resharper_local_function_body = expression_body
resharper_method_or_operator_body = expression_body
resharper_parentheses_non_obvious_operations = none, bitwise, bitwise_inclusive_or, range, bitwise_exclusive_or, shift, bitwise_and
resharper_place_attribute_on_same_line = false
resharper_place_simple_accessor_on_single_line = false
resharper_space_after_cast = false
resharper_space_within_single_line_array_initializer_braces = true
resharper_wrap_text = false
resharper_xmldoc_attribute_style = on_single_line
resharper_xmldoc_blank_line_after_pi = false
resharper_xmldoc_indent_child_elements = ZeroIndent
resharper_xmldoc_indent_text = ZeroIndent
resharper_xmldoc_linebreaks_inside_tags_for_elements_longer_than = 100
resharper_xmldoc_linebreaks_inside_tags_for_elements_with_child_elements = false
resharper_xmldoc_pi_attributes_indent = single_indent
resharper_xmldoc_pi_attribute_style = on_single_line
resharper_xmldoc_space_before_self_closing = false
resharper_xmldoc_wrap_around_elements = false
resharper_xmldoc_wrap_tags_and_pi = false
# ReSharper inspection severities
resharper_arguments_style_literal_highlighting = none
resharper_arrange_constructor_or_destructor_body_highlighting = suggestion
resharper_arrange_local_function_body_highlighting = suggestion
resharper_arrange_method_or_operator_body_highlighting = suggestion
resharper_arrange_redundant_parentheses_highlighting = hint
resharper_arrange_this_qualifier_highlighting = hint
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
resharper_built_in_type_reference_style_highlighting = hint
resharper_convert_closure_to_method_group_highlighting = hint
resharper_convert_if_statement_to_return_statement_highlighting = none
resharper_convert_to_auto_property_with_private_setter_highlighting = none
resharper_convert_to_lambda_expression_when_possible_highlighting = suggestion
resharper_convert_to_using_declaration_highlighting = none
resharper_field_can_be_made_read_only_global_highlighting = warning
resharper_invert_if_highlighting = none
resharper_invocation_is_skipped_highlighting = none
resharper_join_null_check_with_usage_highlighting = hint
resharper_local_suppression_highlighting = none
resharper_loop_can_be_converted_to_query_highlighting = none
resharper_member_can_be_private_global_highlighting = warning
resharper_missing_suppression_justification_highlighting = none
resharper_parameter_only_used_for_precondition_check_local_highlighting = none
resharper_redundant_argument_default_value_highlighting = none
resharper_redundant_attribute_usage_property_highlighting = hint
resharper_redundant_base_qualifier_highlighting = warning
resharper_redundant_default_member_initializer_highlighting = none
resharper_region_with_single_element_highlighting = none
resharper_return_type_can_be_enumerable_global_highlighting = none
resharper_suggest_base_type_for_parameter_highlighting = none
resharper_suggest_var_or_type_built_in_types_highlighting = hint
resharper_switch_expression_handles_some_known_enum_values_with_exception_in_default_highlighting = none
resharper_tail_recursive_call_highlighting = warning
resharper_unused_parameter_local_highlighting = hint
resharper_use_index_from_end_expression_highlighting = none
resharper_use_nameof_expression_highlighting = warning
[*.Tests/**/*]
### Compiler diagnostic ###
# Comparable should define operator(s) '==, !=, <, <=, >, >=' and Equals since it implements IComparable
dotnet_diagnostic.CA1036.severity = none
# In externally visible method, validate parameter is non-null before using it.
dotnet_diagnostic.CA1062.severity = none
# Remove the underscors from member name.
dotnet_diagnostic.CA1707.severity = none
# Parameter is neer used.
dotnet_diagnostic.CA1801.severity = none
# Avoid unsealed attributes
dotnet_diagnostic.CA1813.severity = none
### IDE Diagnostic ###
# IDE0018: Inline variable declaration
dotnet_diagnostic.IDE0018.severity = none
[*.ttinclude]
insert_final_newline = false