-
Notifications
You must be signed in to change notification settings - Fork 6
/
.editorconfig
43 lines (38 loc) · 1.46 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
# Top-most EditorConfig file
root = true
# Editor defaults for every file
[*]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
# Code files
[*.{cs,csx}]
indent_size = 4
insert_final_newline = true
dotnet_style_predefined_type_for_locals_parameters_members=true:error
csharp_space_around_declaration_statements=ignore
csharp_using_directive_placement=inside_namespace:warning
csharp_style_expression_bodied_methods=true:warning
csharp_style_expression_bodied_constructors=true:warning
csharp_style_expression_bodied_operators=true:warning
csharp_style_expression_bodied_properties=true:warning
csharp_style_expression_bodied_indexers=true:warning
csharp_style_expression_bodied_accessors=true:warning
csharp_style_expression_bodied_lambdas=true:warning
csharp_style_expression_bodied_local_functions=true:warning
csharp_prefer_static_local_function=true:warning
csharp_style_prefer_switch_expression=true:warning
csharp_style_prefer_pattern_matching=true:warning
csharp_style_pattern_matching_over_is_with_cast_check=true:warning
csharp_style_pattern_matching_over_as_with_null_check=true:warning
csharp_style_prefer_not_pattern=true:warning
csharp_style_var_for_built_in_types=false:silent
csharp_style_var_when_type_is_apparent=true:silent
csharp_style_var_elsewhere=true:silent
# Dotnet
dotnet_diagnostic.CS0168.severity = none
[*.{cs,vb}]
dotnet_diagnostic.CA2252.severity = none
dotnet_analyzer_diagnostic.category-Usage.severity = none