-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
195 lines (152 loc) · 7.04 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
# Top-most EditorConfig file
root = true
# 2-column space indentation
[*]
indent_style = space
indent_size = 3
tab_width = 2
trim_trailing_whitespace = true
insert_final_newline = true
# NOTE: Requires **VS2019 16.3** or later
# Rules for Battle.net Game Service
# Description: Code analysis rules for Battle.net Game Service.
# Don't run code analysis on generated code
[*.generated.cs]
generated_code = true
# Code files
[*.cs]
# Enum storage should be Int32
dotnet_diagnostic.CA1028.severity = none
# Do not catch general exception types
dotnet_diagnostic.CA1031.severity = none
# CancellationToken parameters must come last
dotnet_diagnostic.CA1068.severity = none
# Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none
# Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = none
# Specify StringComparison
dotnet_diagnostic.CA1307.severity = none
# Identifiers should not contain underscores; too many Games tests to change at the moment
dotnet_diagnostic.CA1707.severity = none
# Do not use Enumerable methods on indexable collections. Instead use the collection directly
dotnet_diagnostic.CA1826.severity = none
# Use ValueTasks correctly
# This seems to be broken with 3.0.0, or our generated code may break it
dotnet_diagnostic.CA2012.severity = none
# SA1101PrefixLocalCallsWithThis
dotnet_diagnostic.SA1101.severity = none
# SA1114ParameterListMustFollowDeclaration
dotnet_diagnostic.SA1114.severity = none
# SA1115ParameterMustFollowComma
dotnet_diagnostic.SA1115.severity = none
# SA1116SplitParametersMustStartOnLineAfterDeclaration
dotnet_diagnostic.SA1116.severity = none
# SA1118ParameterMustNotSpanMultipleLines
dotnet_diagnostic.SA1118.severity = none
# SA1124DoNotUseRegions
dotnet_diagnostic.SA1124.severity = none
# SA1133DoNotCombineAttributes
dotnet_diagnostic.SA1133.severity = none
# SA1309FieldNamesMustNotBeginWithUnderscore
dotnet_diagnostic.SA1309.severity = none
# SA1310FieldNamesMustNotContainUnderscore
dotnet_diagnostic.SA1310.severity = none
# SA1413UseTrailingCommasInMultiLineInitializers
dotnet_diagnostic.SA1413.severity = none
# SA1602EnumerationItemsMustBeDocumented
dotnet_diagnostic.SA1602.severity = none
# SA1611ElementParametersMustBeDocumented
dotnet_diagnostic.SA1611.severity = none
# SA1612ElementParameterDocumentationMustMatchElementParameters
dotnet_diagnostic.SA1612.severity = none
# SA1615ElementReturnValueMustBeDocumented
dotnet_diagnostic.SA1615.severity = none
# SA1618GenericTypeParametersMustBeDocumented
dotnet_diagnostic.SA1618.severity = none
# SA1623PropertySummaryDocumentationMustMatchAccessors
dotnet_diagnostic.SA1623.severity = none
# SA1642ConstructorSummaryDocumentationMustBeginWithStandardText
dotnet_diagnostic.SA1642.severity = none
# SX1101DoNotPrefixLocalMembersWithThis
dotnet_diagnostic.SX1101.severity = error
# SX1309FieldNamesMustBeginWithUnderscore
dotnet_diagnostic.SX1309.severity = error
# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers=false
csharp_preferred_modifier_order=public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
csharp_space_after_cast=false
csharp_style_var_elsewhere=true:hint
csharp_style_var_for_built_in_types=true:hint
csharp_style_var_when_type_is_apparent=true:hint
dotnet_style_predefined_type_for_locals_parameters_members=true:hint
dotnet_style_predefined_type_for_member_access=true:hint
dotnet_style_require_accessibility_modifiers=for_non_interface_members:hint
# ReSharper properties
resharper_add_imports_to_deepest_scope=true
resharper_align_linq_query=true
resharper_align_multiline_binary_expressions_chain=false
resharper_align_multiline_for_stmt=true
resharper_align_multline_type_parameter_constrains=true
resharper_align_multline_type_parameter_list=true
resharper_blank_lines_after_control_transfer_statements=1
resharper_blank_lines_after_start_comment=0
resharper_blank_lines_around_single_line_auto_property=1
resharper_blank_lines_around_single_line_local_method=1
resharper_blank_lines_around_single_line_property=1
resharper_blank_lines_before_single_line_comment=1
resharper_csharp_align_multiline_parameter=true
resharper_csharp_blank_lines_around_single_line_field=1
resharper_csharp_blank_lines_around_single_line_invocable=1
resharper_csharp_new_line_before_while=true
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_before_binary_opsign=true
resharper_csharp_wrap_chained_method_calls=chop_if_long
resharper_csharp_wrap_extends_list_style=chop_if_long
resharper_csharp_wrap_for_stmt_header_style=chop_always
resharper_csharp_wrap_multiple_declaration_style=chop_always
resharper_csharp_wrap_parameters_style=chop_if_long
resharper_keep_existing_declaration_parens_arrangement=false
resharper_keep_existing_expr_member_arrangement=false
resharper_keep_existing_invocation_parens_arrangement=false
resharper_max_enum_members_on_line=1
resharper_max_initializer_elements_on_line=10
resharper_place_accessorholder_attribute_on_same_line=False
resharper_place_accessor_with_attrs_holder_on_single_line=true
resharper_place_constructor_initializer_on_same_line=false
resharper_place_field_attribute_on_same_line=False
resharper_place_simple_accessorholder_on_single_line=true
resharper_place_simple_embedded_statement_on_same_line=False
resharper_protobuf_indent_size=2
resharper_protobuf_tab_width=2
resharper_protobuf_use_indent_from_vs=false
resharper_qualified_using_at_nested_scope=true
resharper_space_within_single_line_array_initializer_braces=true
resharper_wrap_array_initializer_style=chop_if_long
resharper_wrap_before_extends_colon=true
resharper_wrap_before_first_type_parameter_constraint=true
resharper_wrap_before_type_parameter_langle=true
resharper_wrap_chained_binary_expressions=chop_if_long
resharper_wrap_multiple_type_parameter_constraints_style=chop_always
# ReSharper inspection severities
resharper_arrange_this_qualifier_highlighting=none
resharper_c_sharp_warnings_cs1591_highlighting=error
resharper_redundant_name_qualifier_highlighting=none
dotnet_diagnostic.VSTHRD003.severity = suggestion
# Set severity for all analyzers that are enabled by default (https://docs.microsoft.com/en-us/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2022#set-rule-severity-of-multiple-analyzer-rules-at-once-in-an-editorconfig-file)
dotnet_analyzer_diagnostic.category-roslynator.severity = default
# Enable/disable all analyzers by default
# NOTE: This option can be used only in .roslynatorconfig file
roslynator_analyzers.enabled_by_default = true
# Set severity for a specific analyzer
dotnet_diagnostic.RCS0045.severity = silent
# Enable/disable all refactorings
roslynator_refactorings.enabled = true
# Enable/disable specific refactoring
roslynator_refactoring.<REFACTORING_NAME>.enabled = true
# Enable/disable all compiler diagnostic fixes
roslynator_compiler_diagnostic_fixes.enabled = true
# Enable/disable specific compiler diagnostic fix
roslynator_compiler_diagnostic_fix.<COMPILER_DIAGNOSTIC_ID>.enabled = true