forked from veloek/tevling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
55 lines (40 loc) · 1.6 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
root = true
[*]
charset = utf-8
end_of_line = lf
[*.cs]
indent_style = space
indent_size = 4
insert_final_newline = true
# 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