-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
98 lines (86 loc) · 3.99 KB
/
Copy path.editorconfig
File metadata and controls
98 lines (86 loc) · 3.99 KB
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
root = true
[*.{cs,csproj}]
indent_style = space
indent_size = 4
charset = utf-8-bom
end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true
# Preferência por 'var'
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
# Evita this. em membros
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
# Usa expression-bodied members quando possível
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
csharp_style_expression_bodied_constructors = when_on_single_line:suggestion
csharp_style_expression_bodied_properties = when_on_single_line:suggestion
csharp_style_expression_bodied_indexers = when_on_single_line:suggestion
csharp_style_expression_bodied_operators = when_on_single_line:suggestion
csharp_style_expression_bodied_accessors = when_on_single_line:suggestion
# Usa 'readonly' sempre que possível
dotnet_style_readonly_field = true:suggestion
# Organização de using
dotnet_remove_unnecessary_usings = true:silent
dotnet_sort_system_directives_first = true
# Regras de formatação adicionais
csharp_new_line_before_open_brace = all
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers = true
csharp_style_namespace_declarations = file_scoped:warning
# ReSharper properties
resharper_blank_lines_around_single_line_type = 0
resharper_blank_lines_around_type = 1
resharper_blank_lines_before_block_statements = 1
resharper_blank_lines_before_control_transfer_statements = 1
resharper_blank_lines_before_multiline_statements = 1
resharper_blank_lines_before_single_line_comment = 1
resharper_braces_for_dowhile = required_for_multiline
resharper_braces_for_for = required_for_multiline
resharper_braces_for_foreach = required_for_multiline
resharper_braces_for_while = required_for_multiline
resharper_csharp_align_multiline_parameter = false
resharper_csharp_wrap_before_binary_opsign = true
resharper_csharp_wrap_multiple_declaration_style = chop_always
resharper_indent_preprocessor_if = usual_indent
resharper_indent_primary_constructor_decl_pars = inside
resharper_indent_raw_literal_string = indent
resharper_keep_existing_primary_constructor_declaration_parens_arrangement = false
resharper_keep_existing_switch_expression_arrangement = false
resharper_max_array_initializer_elements_on_line = 5
resharper_max_formal_parameters_on_line = 5
resharper_max_invocation_arguments_on_line = 5
resharper_max_primary_constructor_parameters_on_line = 3
resharper_place_linq_into_on_new_line = true
resharper_place_simple_anonymousmethod_on_single_line = false
resharper_place_single_method_argument_lambda_on_same_line = false
resharper_place_type_constraints_on_same_line = false
resharper_prefer_wrap_around_eq = avoid
resharper_trailing_comma_in_multiline_lists = true
resharper_treat_case_statement_with_break_as_simple = false
resharper_wrap_after_property_in_chained_method_calls = true
resharper_wrap_before_primary_constructor_declaration_lpar = true
resharper_wrap_before_primary_constructor_declaration_rpar = true
resharper_wrap_enum_declaration = chop_always
resharper_wrap_list_pattern = chop_if_long
resharper_wrap_object_and_collection_initializer_style = chop_always
resharper_wrap_verbatim_interpolated_strings = no_wrap
# ReSharper inspection severities
resharper_enforce_do_while_statement_braces_highlighting = suggestion
resharper_enforce_foreach_statement_braces_highlighting = suggestion
resharper_enforce_for_statement_braces_highlighting = suggestion
resharper_enforce_if_statement_braces_highlighting = suggestion
resharper_enforce_while_statement_braces_highlighting = suggestion
[*.md]
trim_trailing_whitespace = false
end_of_line = lf
[*.{json,xml,config,yml,yaml}]
indent_style = space
indent_size = 2
end_of_line = lf