1- root = false
1+ root = true
22
3+ # All files
34[* ]
4- charset = utf-8
55indent_style = space
66indent_size = 2
77end_of_line = lf
8+ charset = utf-8
9+ trim_trailing_whitespace = true
810insert_final_newline = true
9- trim_trailing_whitespace = true
11+ csharp_indent_labels = one_less_than_current
12+ csharp_using_directive_placement = outside_namespace:error
13+ csharp_prefer_simple_using_statement = true :suggestion
14+ csharp_prefer_braces = true :error
15+ csharp_style_namespace_declarations = file_scoped:error
16+ csharp_style_prefer_method_group_conversion = false :suggestion
17+ csharp_style_prefer_top_level_statements = true :suggestion
18+ csharp_style_prefer_primary_constructors = true :suggestion
19+ csharp_style_expression_bodied_methods = true :suggestion
20+ csharp_style_expression_bodied_constructors = true :suggestion
21+ csharp_style_expression_bodied_operators = true :suggestion
22+ csharp_style_expression_bodied_properties = true :suggestion
23+ csharp_style_expression_bodied_indexers = true :suggestion
24+ csharp_style_expression_bodied_accessors = true :suggestion
25+ csharp_style_expression_bodied_lambdas = true :suggestion
26+ csharp_style_expression_bodied_local_functions = when_on_single_line:error
27+ csharp_style_throw_expression = true :error
28+ csharp_style_prefer_null_check_over_type_check = true :error
29+ csharp_prefer_simple_default_expression = true :error
30+ csharp_style_prefer_local_over_anonymous_function = true :error
31+ csharp_style_prefer_index_operator = true :error
32+ csharp_style_implicit_object_creation_when_type_is_apparent = true :error
33+ csharp_style_prefer_range_operator = true :error
34+ csharp_style_prefer_tuple_swap = true :suggestion
35+ csharp_style_prefer_utf8_string_literals = true :suggestion
36+ csharp_style_inlined_variable_declaration = true :error
37+ csharp_style_deconstructed_variable_declaration = true :suggestion
38+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
39+ csharp_style_unused_value_assignment_preference = discard_variable:error
40+ csharp_prefer_static_local_function = true :suggestion
41+ csharp_style_prefer_readonly_struct_member = true :suggestion
42+ csharp_style_prefer_readonly_struct = true :suggestion
43+ csharp_style_allow_embedded_statements_on_same_line_experimental = false :warning
44+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true :warning
45+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false :warning
46+ csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false :warning
47+ csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true :warning
48+ csharp_style_conditional_delegate_call = true :error
49+ csharp_style_prefer_switch_expression = false :error
50+ csharp_style_prefer_pattern_matching = true :error
51+ csharp_style_pattern_matching_over_is_with_cast_check = true :error
52+ csharp_style_pattern_matching_over_as_with_null_check = true :error
53+ csharp_style_prefer_not_pattern = true :error
54+ csharp_style_prefer_extended_property_pattern = true :error
55+ csharp_style_var_for_built_in_types = false :silent
56+ csharp_style_var_when_type_is_apparent = false :silent
57+ csharp_style_var_elsewhere = false :silent
58+ csharp_space_around_binary_operators = before_and_after
59+ csharp_indent_case_contents_when_block = false
60+ csharp_space_between_parentheses = false
61+ csharp_preserve_single_line_blocks = false
62+ dotnet_diagnostic.CA1070.severity = warning
63+ dotnet_diagnostic.CA1047.severity = error
64+ dotnet_diagnostic.ASP0000.severity = error
65+ dotnet_diagnostic.CA1200.severity = error
66+ dotnet_diagnostic.CA1309.severity = error
67+ dotnet_diagnostic.CA1311.severity = error
68+ dotnet_diagnostic.CA1507.severity = error
69+ dotnet_diagnostic.CA1508.severity = error
70+ dotnet_diagnostic.MVC1004.severity = none
71+ dotnet_diagnostic.CA1802.severity = error
72+ dotnet_diagnostic.CA1805.severity = error
73+ dotnet_diagnostic.CA1824.severity = error
74+ dotnet_diagnostic.CA1825.severity = error
75+ dotnet_diagnostic.CA1841.severity = error
76+ dotnet_diagnostic.CA1845.severity = error
77+ dotnet_diagnostic.CA1851.severity = error
78+ dotnet_diagnostic.CA1855.severity = error
79+ dotnet_diagnostic.CA1856.severity = none
80+ dotnet_diagnostic.CA1857.severity = none
81+ dotnet_diagnostic.CA1865.severity = error
82+ dotnet_diagnostic.CA1867.severity = none
83+ dotnet_diagnostic.CA1866.severity = none
84+ dotnet_diagnostic.CA1870.severity = error
85+ dotnet_diagnostic.CA1820.severity = error
86+ dotnet_diagnostic.xUnit2000.severity = error
87+ dotnet_diagnostic.xUnit2001.severity = error
88+ dotnet_diagnostic.xUnit2002.severity = error
89+ dotnet_diagnostic.xUnit2003.severity = error
90+ dotnet_diagnostic.xUnit2004.severity = error
91+ dotnet_diagnostic.xUnit2005.severity = error
92+ dotnet_diagnostic.xUnit2006.severity = error
93+ dotnet_diagnostic.xUnit2007.severity = error
94+ dotnet_diagnostic.xUnit2008.severity = error
95+ dotnet_diagnostic.xUnit2009.severity = error
96+ dotnet_diagnostic.xUnit2010.severity = error
97+ dotnet_diagnostic.xUnit2011.severity = error
98+ dotnet_diagnostic.xUnit2012.severity = error
99+ dotnet_diagnostic.xUnit2013.severity = error
100+ dotnet_diagnostic.xUnit2015.severity = error
101+ dotnet_diagnostic.xUnit2017.severity = error
102+ dotnet_diagnostic.xUnit2018.severity = error
103+ dotnet_diagnostic.xUnit2020.severity = error
104+ dotnet_diagnostic.xUnit2022.severity = error
105+ dotnet_diagnostic.xUnit2023.severity = error
106+ dotnet_diagnostic.xUnit2024.severity = error
107+ dotnet_diagnostic.xUnit2025.severity = error
108+ dotnet_diagnostic.xUnit2026.severity = error
109+ dotnet_diagnostic.xUnit2027.severity = error
110+ dotnet_diagnostic.xUnit2028.severity = error
111+ dotnet_diagnostic.xUnit3000.severity = none
112+ dotnet_diagnostic.xUnit1005.severity = error
113+ dotnet_diagnostic.xUnit1006.severity = error
114+ dotnet_diagnostic.xUnit1008.severity = error
115+ dotnet_diagnostic.xUnit1012.severity = error
116+ dotnet_diagnostic.xUnit1013.severity = error
117+ dotnet_diagnostic.xUnit1014.severity = error
118+ dotnet_diagnostic.xUnit1021.severity = error
119+ dotnet_diagnostic.xUnit1025.severity = error
120+ dotnet_diagnostic.xUnit1026.severity = error
121+ dotnet_diagnostic.xUnit1030.severity = error
122+ dotnet_diagnostic.xUnit1031.severity = error
123+ dotnet_diagnostic.xUnit1034.severity = error
124+ dotnet_diagnostic.xUnit1042.severity = error
125+ csharp_new_line_before_open_brace = types,methods,anonymous_methods,control_blocks,anonymous_types,object_collection_array_initializers,lambdas,accessors
126+ csharp_prefer_system_threading_lock = true :suggestion
127+ csharp_style_prefer_implicitly_typed_lambda_expression = true :suggestion
128+ csharp_style_prefer_unbound_generic_type_in_nameof = true :suggestion
129+
130+ # Xml files
131+ [* .xml ]
132+ indent_size = 2
133+
134+
135+ [* .{cs,vb} ]
136+ # ### Naming styles ####
137+
138+ # Naming rules
139+
140+ dotnet_naming_rule.interface_should_be_begins_with_i.severity = error
141+ dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
142+ dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
143+
144+ dotnet_naming_rule.types_should_be_pascal_case.severity = error
145+ dotnet_naming_rule.types_should_be_pascal_case.symbols = types
146+ dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
147+
148+ dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = error
149+ dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
150+ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
151+
152+ # IDE1006: Naming Styles
153+ dotnet_diagnostic.IDE1006.severity = none
154+
155+ # Symbol specifications
156+
157+ dotnet_naming_symbols.interface.applicable_kinds = interface
158+ dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
159+ dotnet_naming_symbols.interface.required_modifiers =
160+
161+ dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
162+ dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
163+ dotnet_naming_symbols.types.required_modifiers =
164+
165+ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
166+ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
167+ dotnet_naming_symbols.non_field_members.required_modifiers =
168+
169+ # Naming styles
170+
171+ dotnet_naming_style.begins_with_i.required_prefix = I
172+ dotnet_naming_style.begins_with_i.required_suffix =
173+ dotnet_naming_style.begins_with_i.word_separator =
174+ dotnet_naming_style.begins_with_i.capitalization = pascal_case
175+
176+ dotnet_naming_style.pascal_case.required_prefix =
177+ dotnet_naming_style.pascal_case.required_suffix =
178+ dotnet_naming_style.pascal_case.word_separator =
179+ dotnet_naming_style.pascal_case.capitalization = pascal_case
180+
181+ dotnet_naming_style.pascal_case.required_prefix =
182+ dotnet_naming_style.pascal_case.required_suffix =
183+ dotnet_naming_style.pascal_case.word_separator =
184+ dotnet_naming_style.pascal_case.capitalization = pascal_case
185+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
186+ tab_width = 4
187+ dotnet_style_coalesce_expression = true :error
188+ dotnet_style_null_propagation = true :error
189+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :error
190+ dotnet_style_prefer_auto_properties = true :suggestion
191+ dotnet_style_object_initializer = true :error
192+ dotnet_style_collection_initializer = true :error
193+ dotnet_style_prefer_conditional_expression_over_assignment = true :error
194+ dotnet_style_prefer_simplified_boolean_expressions = true :error
195+ dotnet_style_explicit_tuple_names = true :error
196+ dotnet_style_prefer_conditional_expression_over_return = true :error
197+ dotnet_style_prefer_inferred_tuple_names = true :error
198+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :error
199+ dotnet_style_prefer_compound_assignment = true :error
200+ dotnet_style_prefer_simplified_interpolation = true :error
201+ dotnet_style_prefer_collection_expression = when_types_loosely_match:none
202+ dotnet_style_namespace_match_folder = true :error
203+ dotnet_style_readonly_field = true :error
204+ dotnet_style_predefined_type_for_locals_parameters_members = true :error
205+ dotnet_style_predefined_type_for_member_access = true :error
206+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
207+ dotnet_style_allow_multiple_blank_lines_experimental = true :suggestion
208+ dotnet_style_allow_statement_immediately_after_block_experimental = false :warning
209+ dotnet_code_quality_unused_parameters = all:error
210+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion
211+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
212+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
213+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
214+ dotnet_style_qualification_for_field = false :error
215+ dotnet_style_qualification_for_property = false :error
216+ dotnet_style_qualification_for_method = false :error
217+ dotnet_style_qualification_for_event = false :error
218+ dotnet_diagnostic.CA1001.severity = error
219+ dotnet_diagnostic.CA1008.severity = error
220+ dotnet_diagnostic.CA1010.severity = warning
221+ dotnet_diagnostic.CA1012.severity = error
222+ dotnet_diagnostic.CA1014.severity = none
223+ dotnet_diagnostic.CA1016.severity = error
224+ dotnet_diagnostic.CA1017.severity = none
225+ dotnet_diagnostic.CA1019.severity = error
226+ dotnet_diagnostic.CA1024.severity = error
227+ dotnet_diagnostic.CA1027.severity = error
228+ dotnet_diagnostic.CA1028.severity = error
229+ dotnet_diagnostic.CA1030.severity = error
230+ dotnet_diagnostic.CA1031.severity = none
231+ dotnet_diagnostic.CA1034.severity = error
232+ dotnet_diagnostic.CA1040.severity = error
233+ dotnet_diagnostic.CA1041.severity = error
234+ dotnet_diagnostic.CA1043.severity = error
235+ dotnet_diagnostic.CA1044.severity = error
236+ dotnet_diagnostic.CA1045.severity = error
237+ dotnet_diagnostic.CA1046.severity = none
238+ dotnet_diagnostic.CA1050.severity = error
239+ dotnet_diagnostic.CA1051.severity = warning
240+ dotnet_diagnostic.CA1052.severity = error
241+ dotnet_diagnostic.CA1054.severity = error
242+ dotnet_diagnostic.CA1055.severity = error
243+ dotnet_diagnostic.CA1056.severity = error
244+ dotnet_diagnostic.CA1058.severity = error
245+ dotnet_diagnostic.CA1061.severity = error
246+ dotnet_diagnostic.CA1062.severity = none
247+ dotnet_diagnostic.CA1063.severity = error
248+ dotnet_diagnostic.CA1064.severity = error
249+ dotnet_diagnostic.CA1065.severity = error
250+ dotnet_diagnostic.CA1066.severity = error
251+ dotnet_diagnostic.CA1067.severity = error
252+ dotnet_diagnostic.CA1068.severity = error
253+ dotnet_diagnostic.CA1069.severity = error
254+ dotnet_diagnostic.CA1303.severity = error
255+ dotnet_diagnostic.CA1304.severity = error
256+ dotnet_diagnostic.CA1305.severity = error
257+ dotnet_diagnostic.CA1307.severity = silent
258+ dotnet_diagnostic.CA1308.severity = none
259+ dotnet_diagnostic.CA1310.severity = error
260+ dotnet_diagnostic.CA2101.severity = warning
261+ dotnet_diagnostic.CA1501.severity = error
262+ dotnet_diagnostic.CA1506.severity = none
263+ dotnet_diagnostic.CA1509.severity = error
264+ dotnet_diagnostic.CA1510.severity = error
265+ dotnet_diagnostic.CA1511.severity = error
266+ dotnet_diagnostic.CA1512.severity = error
267+ dotnet_diagnostic.CA1513.severity = error
268+ dotnet_diagnostic.CA1700.severity = error
269+ dotnet_diagnostic.CA1707.severity = none
270+ dotnet_diagnostic.CA1708.severity = error
271+ dotnet_diagnostic.CA1710.severity = suggestion
272+ dotnet_diagnostic.CA1712.severity = error
273+ dotnet_diagnostic.CA1715.severity = error
274+ dotnet_diagnostic.CA1716.severity = warning
275+ dotnet_diagnostic.CA1720.severity = none
276+ dotnet_diagnostic.CA1721.severity = error
277+ dotnet_diagnostic.CA1724.severity = none
278+ dotnet_diagnostic.CA1725.severity = warning
279+ dotnet_diagnostic.CA1727.severity = none
280+ dotnet_diagnostic.CA1806.severity = error
281+ dotnet_diagnostic.CA1810.severity = error
282+
283+ # IDE0305: Simplify collection initialization
284+ dotnet_diagnostic.IDE0305.severity = none
0 commit comments