-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy path.editorconfig
More file actions
165 lines (153 loc) · 7.94 KB
/
.editorconfig
File metadata and controls
165 lines (153 loc) · 7.94 KB
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
root = true
[*]
indent_style = space
indent_size = 4
tab_width = 4
end_of_line = crlf
insert_final_newline = true
max_line_length = 140
file_header_template = Copyright (c) 2026 Sergio Aquilini\nThis code is licensed under MIT license (see LICENSE file for details)
# Set all analyzers rules to warnings by default
dotnet_analyzer_diagnostic.severity = warning
# Compiler warnings
# CS0067: The event 'event' is never used
dotnet_diagnostic.CS0067.severity = none
# Style
# IDE0010: Add missing cases to switch statement
dotnet_diagnostic.IDE0010.severity = none
# IDE0046: Use conditional expression for assignments
dotnet_diagnostic.IDE0045.severity = suggestion
# IDE0046: Use conditional expression for return
dotnet_diagnostic.IDE0046.severity = suggestion
# IDE0058: Computed value is never used
dotnet_diagnostic.IDE0058.severity = none
# IDE0072: Add missing cases to switch expression
dotnet_diagnostic.IDE0072.severity = none
# IDE0290: Use primary constructor
dotnet_diagnostic.IDE0290.severity = suggestion
# StyleCop.Analyzers
# SA1101: A call to an instance member of the local class or a base class is not prefixed with ‘this.’, within a C# code file
dotnet_diagnostic.SA1101.severity = none
# SA1309: A field name in C# begins with an underscore
dotnet_diagnostic.SA1309.severity = none
# SA1408: A C# statement contains a complex conditional expression which omits parenthesis around operators
dotnet_diagnostic.SA1408.severity = none
# SA1413: The last statement in a multi-line C# initializer or list is missing a trailing comma
dotnet_diagnostic.SA1413.severity = none
# SA1500:Braces for multi-line statements should not share line - causes false positives with .net 10 implicit fields syntax
dotnet_diagnostic.SA1500.severity = none
# SA1503: The opening and closing curly brackets for a C# statement have been omitted
dotnet_diagnostic.SA1503.severity = none
# SA1513:Closing brace should be followed by blank line - causes false positives with .net 10 implicit fields syntax
dotnet_diagnostic.SA1513.severity = none
# Microsoft.CodeAnalysis.NetAnalyzers
# CA1716: Identifiers should not match keywords
dotnet_diagnostic.CA1716.severity = none
# CA1852: Seal internal types
dotnet_diagnostic.CA1852.severity = none
# Threading
# VSTHRD003: Avoid awaiting foreign Tasks
dotnet_diagnostic.VSTHRD003.severity = none
# xUnit
# xUnit1045: xUnit1045 : The type argument TestValidationMessage might not be serializable...
dotnet_diagnostic.xUnit1045.severity = suggestion
# C#/.NET style rules
csharp_new_line_before_members_in_object_initializers = false
csharp_preferred_modifier_order = public, private, protected, internal, static, new, abstract, virtual, sealed, override, readonly, extern, unsafe, volatile, async
csharp_space_after_cast = false
csharp_style_var_when_type_is_apparent = false
csharp_style_var_for_built_in_types = false
csharp_style_var_elsewhere = false
csharp_style_implicit_object_creation_when_type_is_apparent = true
csharp_style_namespace_declarations = file_scoped
csharp_style_expression_bodied_methods = true
csharp_style_expression_bodied_operators = true
csharp_style_expression_bodied_local_functions = true
csharp_prefer_braces = when_multiline
dotnet_naming_rule.method_rule.severity = warning
dotnet_naming_rule.method_rule.style = upper_camel_case_style
dotnet_naming_rule.method_rule.symbols = method_symbols
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
dotnet_naming_symbols.method_symbols.applicable_accessibilities = *
dotnet_naming_symbols.method_symbols.applicable_kinds = method
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary
dotnet_style_predefined_type_for_locals_parameters_members = true
dotnet_style_predefined_type_for_member_access = true
dotnet_style_qualification_for_event = false
dotnet_style_qualification_for_field = false
dotnet_style_qualification_for_method = false
dotnet_style_qualification_for_property = false
dotnet_style_require_accessibility_modifiers = for_non_interface_members
# ReSharper properties
resharper_blank_lines_around_single_line_auto_property = 1
resharper_blank_lines_around_single_line_property = 1
resharper_braces_for_for = required
resharper_braces_for_foreach = required
resharper_braces_for_ifelse = required_for_multiline
resharper_braces_for_while = required
resharper_braces_redundant = false
resharper_csharp_blank_lines_around_single_line_field = 1
resharper_csharp_blank_lines_around_single_line_invocable = 1
resharper_csharp_naming_rule.method = AaBb, AaBb_AaBb
resharper_csharp_stick_comment = false
resharper_csharp_wrap_after_declaration_lpar = true
resharper_csharp_wrap_after_invocation_lpar = true
resharper_csharp_wrap_arguments_style = chop_if_long
resharper_csharp_wrap_parameters_style = chop_if_long
resharper_enforce_line_ending_style = true
resharper_for_built_in_types = use_explicit_type
resharper_indent_nested_foreach_stmt = true
resharper_indent_nested_for_stmt = true
resharper_indent_nested_while_stmt = true
resharper_keep_existing_declaration_parens_arrangement = false
resharper_keep_existing_embedded_arrangement = false
resharper_keep_existing_invocation_parens_arrangement = false
resharper_new_line_before_while = true
resharper_place_attribute_on_same_line = false
resharper_place_constructor_initializer_on_same_line = false
resharper_place_simple_embedded_statement_on_same_line = false
resharper_show_autodetect_configure_formatting_tip = false
resharper_space_after_cast = false
resharper_space_within_single_line_array_initializer_braces = true
resharper_use_indent_from_vs = false
resharper_wrap_before_extends_colon = true
resharper_wrap_lines = false
resharper_xmldoc_linebreaks_inside_tags_for_elements_longer_than = 100
resharper_xmldoc_linebreak_before_multiline_elements = false
resharper_xmldoc_wrap_tags_and_pi = false
resharper_use_roslyn_logic_for_evident_types = false
resharper_csharp_keep_existing_linebreaks = true
# ReSharper inspection severities
resharper_arrange_redundant_parentheses_highlighting = hint
resharper_arrange_this_qualifier_highlighting = hint
resharper_arrange_type_member_modifiers_highlighting = hint
resharper_arrange_type_modifiers_highlighting = hint
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
resharper_built_in_type_reference_style_highlighting = hint
resharper_condition_is_always_true_or_false_highlighting = warning
resharper_constant_conditional_access_qualifier_highlighting = suggestion
resharper_local_function_can_be_made_static_highlighting = warning
resharper_member_can_be_made_static_global_highlighting = warning
resharper_member_can_be_made_static_local_highlighting = warning
resharper_redundant_base_qualifier_highlighting = warning
resharper_redundant_case_label_highlighting = hint
resharper_suggest_var_or_type_built_in_types_highlighting = warning
resharper_suggest_var_or_type_elsewhere_highlighting = warning
resharper_suggest_var_or_type_simple_types_highlighting = warning
resharper_unnecessary_whitespace_highlighting = warning
resharper_unused_auto_property_accessor_global_highlighting = suggestion
resharper_unused_auto_property_accessor_local_highlighting = suggestion
resharper_web_config_module_not_resolved_highlighting = warning
resharper_web_config_type_not_resolved_highlighting = warning
resharper_web_config_wrong_module_highlighting = warning
resharper_lambda_expression_must_be_static_highlighting = warning
resharper_arrange_missing_parentheses_highlighting = warning
resharper_arrange_object_creation_when_type_evident_highlighting = warning
resharper_arrange_object_creation_when_type_not_evident_highlighting = warning
resharper_use_negated_pattern_in_is_expression_highlighting = warning
resharper_condition_is_always_true_or_false_according_to_nullable_api_contract_highlighting = suggestion
resharper_replace_conditional_expression_with_null_coalescing_highlighting = warning
[*.{csproj,props,yml,yaml,json,xml,config}]
indent_size = 2