forked from FubarDevelopment/FtpServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
69 lines (53 loc) · 2.93 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
root = true
[*]
end_of_line = CRLF
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.json]
indent_size = 2
[*.sql]
insert_final_newline = false
[*.{csproj,proj,targets,props,ruleset}]
indent_size = 2
[*.cs]
indent_size = 4
charset = utf-8
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_prefer_braces = true:suggestion
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = true
csharp_new_line_before_open_brace = all
# name all constant fields using PascalCase
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = constant_fields_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
dotnet_naming_style.constant_fields_style.capitalization = pascal_case
# static fields should be pascal case prefix
dotnet_naming_rule.static_fields_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.static_fields_fields_should_be_pascal_case.symbols = public_static_fields
dotnet_naming_rule.static_fields_fields_should_be_pascal_case.style = public_static_fields_style
dotnet_naming_symbols.public_static_fields.applicable_kinds = field
dotnet_naming_symbols.public_static_fields.required_modifiers = static
dotnet_naming_symbols.public_static_fields.applicable_accessibilities = public, internal
dotnet_naming_style.public_static_fields_style.capitalization = pascal_case
# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
# private static fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_static_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_static_fields.symbols = private_static_fields
dotnet_naming_rule.camel_case_for_private_static_fields.style = camel_case_underscore_style
dotnet_naming_symbols.private_static_fields.applicable_kinds = field
dotnet_naming_symbols.private_static_fields.required_modifiers = static
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private,