forked from buddies-blue/maui-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
89 lines (70 loc) · 3.14 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
# All Files
insert_final_newline = true
# C#
[*.{cs,cshtml,xaml}]
indent_style = tab
tab_width = 4
guidelines = 80, 140
# SQL
[*.sql]
indent_style = tab
tab_width = 4
# JSON
[*.{json,jsonc}]
indent_style = tab
tab_width = 4
#################
# Visual Studio #
#################
[*.cs]
# Code Style Settings: Keywords
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_style_predefined_type_for_member_access = true:error
# Code Style Settings: Modifiers
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error
dotnet_style_readonly_field = true:warning
csharp_prefer_static_local_function = true:suggestion
# Code Style Settings: Code Block
csharp_prefer_braces = true:warning
csharp_prefer_simple_using_statement = true:warning
# Code Style Settings: Null Operators
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
csharp_style_conditional_delegate_call = true:suggestion
# Code Style Settings: Expression Body
csharp_style_expression_bodied_constructors = false:warning
csharp_style_expression_bodied_methods = false:warning
csharp_style_expression_bodied_operators = false:warning
csharp_style_expression_bodied_properties = when_on_single_line:warning
csharp_style_expression_bodied_indexers = when_on_single_line:warning
csharp_style_expression_bodied_accessors = when_on_single_line:warning
csharp_style_expression_bodied_lambdas = when_on_single_line:suggestion
csharp_style_expression_bodied_local_functions = false:warning
# Code Style Settings: Pattern Matching
csharp_style_pattern_matching_over_as_with_null_check = true:warning
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_pattern_matching = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
# Code Style Settings: Private Fields
dotnet_naming_rule.instance_fields_rule.severity = suggestion
dotnet_naming_rule.instance_fields_rule.symbols = instance_fields_symbols
dotnet_naming_rule.instance_fields_rule.style = instance_field_style
dotnet_naming_symbols.instance_fields_symbols.applicable_accessibilities = private
dotnet_naming_symbols.instance_fields_symbols.applicable_kinds = field
dotnet_naming_style.instance_field_style.capitalization = camel_case
dotnet_naming_style.instance_field_style.required_prefix = _
# Code Style Settings: Static/Constant Fields
dotnet_naming_rule.static_fields_rule.severity = suggestion
dotnet_naming_rule.static_fields_rule.symbols = static_fields_symbols
dotnet_naming_rule.static_fields_rule.style = static_field_style
dotnet_naming_symbols.static_fields_symbols.applicable_kinds = field
dotnet_naming_symbols.static_fields_symbols.required_modifiers = static
dotnet_naming_style.static_field_style.capitalization = pascal_case
# Code Style Settings: var
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
# Code Style Settings: using
csharp_using_directive_placement = outside_namespace:warning