-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.editorconfig
110 lines (97 loc) · 4.18 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
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
max_line_length = 180
# XML based formats
[*.{appxmanifest,axml,build,config,csproj,dbml,discomap,dtd,jsproj,lsproj,njsproj,nuspec,proj,props,resw,resx,StyleCop,targets,tasks,vbproj,xml,xsd}]
indent_style = space
indent_size = 2
tab_width = 2
ij_xml_space_inside_empty_tag = true
ij_xml_keep_blank_lines = 1
# JSON based formats
[*.{json,resjson}]
indent_style = space
indent_size = 2
tab_width = 2
# Web languages
[*.{css,htm,html,js}]
indent_style = space
indent_size = 2
tab_width = 2
# Programming languages
[*.{asax,ascx,aspx,axaml,cs,cshtml}]
indent_style = space
indent_size = 4
tab_width = 4
# Analyzer settings
roslynator_accessibility_modifiers = explicit
roslynator_enum_has_flag_style = method
roslynator_object_creation_type_style = explicit
roslynator_use_var_instead_of_implicit_object_creation = false
csharp_style_namespace_declarations = file_scoped:error
dotnet_public_api_analyzer.require_api_files = true # Disable the requirement for projects to have a PublicAPI.Shipped.txt file
# Csharp styles
csharp_new_line_before_members_in_object_initializers = false
csharp_preferred_modifier_order = public, private, protected, internal, new, sealed, static, unsafe, override, extern, async, virtual, abstract, volatile, readonly:suggestion
csharp_preserve_single_line_blocks = true
csharp_space_after_cast = false
csharp_style_var_elsewhere = false:none
csharp_style_var_when_type_is_apparent = false:none
# Dotnet styles
# ReSharper properties
resharper_align_multiline_calls_chain = true
resharper_arguments_skip_single = true
resharper_blank_lines_after_block_statements = 0
resharper_blank_lines_after_start_comment = 0
resharper_blank_lines_around_auto_property = 1
resharper_blank_lines_around_property = 1
resharper_blank_lines_around_single_line_type = 0
resharper_braces_for_fixed = required_for_multiline
resharper_braces_for_for = required_for_multiline
resharper_braces_for_foreach = required_for_multiline
resharper_braces_for_ifelse = required_for_multiline
resharper_braces_for_lock = required_for_multiline
resharper_braces_for_using = required_for_multiline
resharper_braces_for_while = required_for_multiline
resharper_csharp_blank_lines_around_field = 0
resharper_csharp_blank_lines_around_invocable = 1
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_max_line_length = 2081
resharper_csharp_space_before_trailing_comment = true
resharper_csharp_wrap_lines = false
resharper_csharp_wrap_parameters_style = chop_if_long
resharper_indent_preprocessor_other = do_not_change
resharper_instance_members_qualify_declared_in = this_class
resharper_keep_existing_attribute_arrangement = true
resharper_keep_existing_enum_arrangement = false
resharper_local_function_body = expression_body
resharper_method_or_operator_body = expression_body
#resharper_method_or_operator_body = expression_body
#resharper_keep_existing_declaration_block_arrangement = true
#resharper_keep_existing_embedded_block_arrangement = true
resharper_nested_ternary_style = compact
resharper_object_creation_when_type_evident = explicitly_typed
resharper_place_accessorholder_attribute_on_same_line = false
resharper_place_accessor_attribute_on_same_line = true
resharper_place_expr_accessor_on_single_line = true
resharper_place_expr_method_on_single_line = true
resharper_place_expr_property_on_single_line = true
resharper_place_field_attribute_on_same_line = false
resharper_place_simple_embedded_statement_on_same_line = false
resharper_place_simple_initializer_on_single_line = true
resharper_remove_blank_lines_near_braces_in_code = true
resharper_remove_blank_lines_near_braces_in_declarations = true
resharper_space_after_attributes = false
resharper_space_between_attribute_sections = false
resharper_space_within_empty_braces = false
resharper_space_within_single_line_array_initializer_braces = true
resharper_wrap_object_and_collection_initializer_style = chop_always
resharper_space_before_trailing_comment = true
resharper_xmldoc_indent_text = ZeroIndent
# Microsoft .NET properties
csharp_style_var_for_built_in_types = false:suggestion