-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.editorconfig
80 lines (59 loc) · 2.67 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
# use this configuration file only
root = true
# Disable ReSharper custom formatters
disable_formatter=true
# C# code style
[*.cs]
indent_style = tab
indent_size = tab
end_of_line = crlf
max_line_length = 150
# using definitions handling
dotnet_sort_system_directives_first = true
# properties to be prefaced with this.
dotnet_style_qualification_for_property = true:warning
# language keyword for member access expressions instead of the type name
dotnet_style_predefined_type_for_member_access = true:warning
# accessibility modifiers must always be specified
dotnet_style_require_accessibility_modifiers = always:warning
# IDE0008: Use explicit type
csharp_style_var_elsewhere = false:none
csharp_style_var_for_built_in_types = false:none
csharp_style_var_when_type_is_apparent = false:none
# IDE0016: null check style
csharp_style_throw_expression = false:none
# IDE0018: inline variables style
csharp_style_inlined_variable_declaration = true:silent
# IDE0019: pattern matching style
csharp_style_pattern_matching_over_as_with_null_check = false:none
# IDE0020: pattern matching style
csharp_style_pattern_matching_over_is_with_cast_check = false:none
# IDE0029: coalescing expressions check
dotnet_style_coalesce_expression = false:none
# IDE0054: compound assignment expressions check
dotnet_style_prefer_compound_assignment = false:none
# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = none
# VSSpell001: spelling
dotnet_diagnostic.VSSpell001.severity = none
# define "Constants" symbols specifications
dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.applicable_accessibilities = public,private,protected,internal,protected_internal,local
dotnet_naming_symbols.constants.required_modifiers = const
# define "Private Fields" symbols specifications
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
# define "All Upper Case" naming style
dotnet_naming_style.upper_case.capitalization = all_upper
dotnet_naming_style.upper_case.word_separator = _
# define "Begins With _" naming style
dotnet_naming_style.begins_with_.capitalization = camel_case
dotnet_naming_style.begins_with_.required_prefix = _
# define "Constant Must Be Upper Case" rule
dotnet_naming_rule.constant_must_be_upper_case.severity = error
dotnet_naming_rule.constant_must_be_upper_case.symbols = constants
dotnet_naming_rule.constant_must_be_upper_case.style = upper_case
# define "Field Must Begin With _" rule
dotnet_naming_rule.field_must_begin_with_.severity = error
dotnet_naming_rule.field_must_begin_with_.symbols = private_fields
dotnet_naming_rule.field_must_begin_with_.style = begins_with_