11# .editorconfig
22# https://editorconfig.org
3+ # Basic editor configuration - formatting is handled by CSharpier
4+ # See .deepsource.yaml for DeepSource CSharpier configuration
35
46root = true
57
@@ -16,88 +18,6 @@ indent_size = 2
1618
1719[* .md ]
1820trim_trailing_whitespace = false
19-
20- [* .cs ]
21- # Organize usings
22- dotnet_sort_system_directives_first = true
23- dotnet_separate_import_directive_groups = false
24-
25- # this. preferences
26- dotnet_style_qualification_for_field = false :suggestion
27- dotnet_style_qualification_for_property = false :suggestion
28- dotnet_style_qualification_for_method = false :suggestion
29- dotnet_style_qualification_for_event = false :suggestion
30-
31- # Language keywords vs BCL types preferences
32- dotnet_style_predefined_type_for_locals_parameters_members = true :suggestion
33- dotnet_style_predefined_type_for_member_access = true :suggestion
34-
35- # Modifier preferences
36- dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
37- dotnet_style_readonly_field = true :suggestion
38-
39- # Expression-level preferences
40- dotnet_style_object_initializer = true :suggestion
41- dotnet_style_collection_initializer = true :suggestion
42- dotnet_style_explicit_tuple_names = true :suggestion
43- dotnet_style_prefer_inferred_tuple_names = true :suggestion
44- dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
45- dotnet_style_prefer_auto_properties = true :suggestion
46- dotnet_style_prefer_conditional_expression_over_assignment = true :suggestion
47- dotnet_style_prefer_conditional_expression_over_return = true :suggestion
48-
49- # Null-checking preferences
50- dotnet_style_coalesce_expression = true :suggestion
51- dotnet_style_null_propagation = true :suggestion
52- dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
53-
54- # C# style rules
55- csharp_style_var_for_built_in_types = false :suggestion
56- csharp_style_var_when_type_is_apparent = true :suggestion
57- csharp_style_var_elsewhere = false :suggestion
58-
59- # Expression-bodied members
60- csharp_style_expression_bodied_methods = when_on_single_line:suggestion
61- csharp_style_expression_bodied_constructors = false :suggestion
62- csharp_style_expression_bodied_operators = when_on_single_line:suggestion
63- csharp_style_expression_bodied_properties = when_on_single_line:suggestion
64- csharp_style_expression_bodied_indexers = when_on_single_line:suggestion
65- csharp_style_expression_bodied_accessors = when_on_single_line:suggestion
66- csharp_style_expression_bodied_lambdas = when_on_single_line:suggestion
67- csharp_style_expression_bodied_local_functions = when_on_single_line:suggestion
68-
69- # Pattern matching preferences
70- csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
71- csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
72-
73- # Null-checking preferences
74- csharp_style_throw_expression = true :suggestion
75- csharp_style_conditional_delegate_call = true :suggestion
76-
77- # Code-block preferences
78- csharp_prefer_braces = true :suggestion
79-
80- # Using directive preferences
81- csharp_using_directive_placement = outside_namespace:suggestion
82-
83- # Namespace preferences
84- csharp_style_namespace_declarations = file_scoped:suggestion
85-
86- # Formatting rules
87- csharp_new_line_before_open_brace = all
88- csharp_new_line_before_else = true
89- csharp_new_line_before_catch = true
90- csharp_new_line_before_finally = true
91- csharp_new_line_before_members_in_object_initializers = true
92- csharp_new_line_before_members_in_anonymous_types = true
93-
94- # Indentation preferences
95- csharp_indent_case_contents = true
96- csharp_indent_switch_labels = true
97-
98- # Space preferences
99- csharp_space_after_cast = false
100- csharp_space_after_keywords_in_control_flow_statements = true
10121csharp_space_between_method_call_parameter_list_parentheses = false
10222csharp_space_between_method_declaration_parameter_list_parentheses = false
10323csharp_space_between_parentheses = false
0 commit comments