-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
78 lines (61 loc) · 2.51 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
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
[*.{cs,razor}]
indent_style = space
indent_size = 4
# ReSharper properties
resharper_align_multiline_binary_expressions_chain = false
resharper_braces_redundant = false
resharper_csharp_align_multiline_binary_expressions_chain = false
resharper_csharp_max_line_length = 120
resharper_csharp_wrap_after_invocation_lpar = true
resharper_csharp_wrap_arguments_style = chop_if_long
resharper_csharp_wrap_lines = true
resharper_csharp_wrap_parameters_style = chop_if_long
resharper_force_attribute_style = separate
resharper_html_space_before_self_closing = true
resharper_keep_existing_attribute_arrangement = false
resharper_keep_existing_linebreaks = true
resharper_no_indent_inside_elements = html
resharper_trailing_comma_in_multiline_lists = true
resharper_wrap_after_property_in_chained_method_calls = true
resharper_wrap_chained_binary_expressions = chop_if_long
resharper_wrap_chained_method_calls = chop_if_long
# Prefer explicit types unless apparent
csharp_style_var_for_built_in_types = false
csharp_style_var_when_type_is_apparent = false
csharp_style_var_elsewhere = false
# Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion
# Newline settings
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_style_namespace_declarations = file_scoped
csharp_prefer_braces = when_multiline
dotnet_style_prefer_conditional_expression_over_return = false
csharp_style_unused_value_assignment_preference = discard_variable:none
# IDE0008: Use explicit type instead of var
dotnet_diagnostic.ide0008.severity = warning
# IDE0059: Unnecessary assignment to a value
dotnet_diagnostic.ide0059.severity = warning
# IDE0060: Remove unused parameter
dotnet_diagnostic.ide0060.severity = warning
# IDE0090: Simplify new expression
dotnet_diagnostic.ide0090.severity = warning
# CA1012: Abstract types should not have public constructors
dotnet_diagnostic.ca1012.severity = warning
# CA1822: Make member static
dotnet_diagnostic.ca1822.severity = warning
[*.{json,css,csproj}]
indent_style = space
indent_size = 2