-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
192 lines (168 loc) · 8.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
root=true
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
[*]
end_of_line=crlf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
# Microsoft .NET properties
csharp_new_line_before_catch=false
csharp_new_line_before_else=false
csharp_new_line_before_finally=false
csharp_new_line_before_members_in_object_initializers=true
csharp_new_line_before_open_brace=none
csharp_preferred_modifier_order=public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
csharp_space_after_keywords_in_control_flow_statements=false
csharp_style_var_elsewhere=true:suggestion
csharp_style_var_for_built_in_types=true:suggestion
csharp_style_var_when_type_is_apparent=true:suggestion
csharp_style_namespace_declarations=file_scoped
dotnet_naming_rule.private_constants_rule.severity=suggestion
dotnet_naming_rule.private_constants_rule.style=lower_camel_case_style
dotnet_naming_rule.private_constants_rule.symbols=private_constants_symbols
dotnet_naming_rule.private_static_readonly_rule.severity=suggestion
dotnet_naming_rule.private_static_readonly_rule.style=lower_camel_case_style
dotnet_naming_rule.private_static_readonly_rule.symbols=private_static_readonly_symbols
dotnet_naming_style.lower_camel_case_style.capitalization=camel_case
dotnet_naming_style.lower_camel_case_style.required_prefix=_
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities=private
dotnet_naming_symbols.private_constants_symbols.applicable_kinds=field
dotnet_naming_symbols.private_constants_symbols.required_modifiers=const
dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities=private
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds=field
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers=static,readonly
dotnet_style_parentheses_in_arithmetic_binary_operators=never_if_unnecessary:none
dotnet_style_parentheses_in_other_binary_operators=never_if_unnecessary:none
dotnet_style_parentheses_in_relational_binary_operators=never_if_unnecessary:none
dotnet_style_predefined_type_for_locals_parameters_members=true:suggestion
dotnet_style_predefined_type_for_member_access=true:suggestion
dotnet_style_qualification_for_event=false:suggestion
dotnet_style_qualification_for_field=false:suggestion
dotnet_style_qualification_for_method=false:suggestion
dotnet_style_qualification_for_property=false:suggestion
dotnet_style_require_accessibility_modifiers=for_non_interface_members:suggestion
# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
file_header_template = unset
# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:warning
# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true
# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false
# ReSharper properties
resharper_allow_comment_after_lbrace=true
resharper_brace_style=end_of_line
resharper_csharp_wrap_lines=false
resharper_enforce_line_ending_style=true
resharper_new_line_before_catch=false
resharper_new_line_before_else=false
resharper_new_line_before_finally=false
# 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_comment_typo_highlighting=none
resharper_identifier_typo_highlighting=none
resharper_inconsistent_naming_highlighting=suggestion
resharper_localizable_element_highlighting=none
resharper_redundant_base_qualifier_highlighting=warning
resharper_string_literal_typo_highlighting=none
resharper_suggest_var_or_type_built_in_types_highlighting=hint
resharper_suggest_var_or_type_elsewhere_highlighting=hint
resharper_suggest_var_or_type_simple_types_highlighting=hint
[*.{cs,vb}]
max_line_length=200
dotnet_diagnostic.IDE0005.severity = warning # Using directive is unnecessary
dotnet_diagnostic.IDE0055.severity = warning # Fix formatting
dotnet_diagnostic.IDE0161.severity = warning # Use file-scoped namespace
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _
# Roslynator
dotnet_diagnostic.RCS0003.severity = warning
dotnet_diagnostic.RCS0008.severity = warning
dotnet_diagnostic.RCS0010.severity = warning
dotnet_diagnostic.RCS1003.severity = warning
dotnet_diagnostic.RCS1077.severity = none
dotnet_diagnostic.RCS1035.severity = warning
dotnet_diagnostic.RCS1037.severity = warning
dotnet_diagnostic.RCS1057.severity = warning
dotnet_diagnostic.RCS1090.severity = none
dotnet_diagnostic.RCS1096.severity = none
dotnet_diagnostic.RCS1010.severity = warning
dotnet_diagnostic.RCS1118.severity = none
dotnet_diagnostic.RCS1124.severity = none
dotnet_diagnostic.RCS1173.severity = none
dotnet_diagnostic.RCS1176.severity = warning
dotnet_diagnostic.RCS1177.severity = warning
dotnet_diagnostic.RCS1179.severity = none
dotnet_diagnostic.RCS1221.severity = none
dotnet_diagnostic.RCS1224.severity = none
dotnet_diagnostic.RCS0003.severity = warning
dotnet_diagnostic.RCS1036.severity = warning
dotnet_diagnostic.RCS1046.severity = warning
dotnet_diagnostic.RCS1094.severity = warning
dotnet_diagnostic.RCS1128.severity = none
dotnet_diagnostic.RCS1197.severity = none
# Other diagnostics
dotnet_diagnostic.IDE0005.severity = warning
dotnet_diagnostic.IDE0019.severity = none
dotnet_diagnostic.IDE0019WithoutSuggestion.severity = none
dotnet_diagnostic.IDE0037.severity = none
dotnet_diagnostic.IDE0037WithoutSuggestion.severity = none
dotnet_diagnostic.IDE0049.severity = none
dotnet_diagnostic.IDE0130.severity = warning
dotnet_diagnostic.CA2016.severity = warning
# Karls Analyzers
dotnet_diagnostic.KP0001.severity = warning
[**/Migrations/*.cs]
generated_code = true
[*.{appxmanifest,axml,build,config,dbml,discomap,dtd,jsproj,lsproj,njsproj,nuspec,proj,props,proto,resw,resx,StyleCop,targets,tasks,vbproj,xml,xsd}]
indent_style=tab
indent_size=tab
tab_width=4
[*.{asax,ascx,aspx,cs,cshtml,css,htm,html,js,jsx,master,razor,skin,ts,tsx,vb,xaml,xamlx,xoml}]
indent_style=space
indent_size=4
tab_width=4
[*.{js,json,resjson,csproj}]
indent_style=space
indent_size=2
tab_width=2