-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
70 lines (53 loc) · 2.7 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
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Curently, this project does not use .cs files, but this should be kept as the default.
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
[*.cs]
indent_style = space
indent_size = 4
tab_width = 4
trim_trailing_whitespace = true
insert_final_newline = true
csharp_style_var_elsewhere = true:warning
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
# Public Properties, Methods, Fields, Events, Delegates, and Classes - Pascal Case
dotnet_naming_symbols.public_symbols.applicable_kinds = property, method, field, event, delegate, class
dotnet_naming_symbols.public_symbols.applicable_accesibilities = public
dotnet_naming_style.pascal_style.capitalization = pascal_case
dotnet_naming_rule.public_members_pascal.symbols = public_symbols
dotnet_naming_rule.public_members_pascal.style = pascal_style
dotnet_naming_rule.public_members_pascal.severity = error
# Private fields...
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accesibilities = public
dotnet_naming_style.private_fields_style.capitalization = camel_case
dotnet_naming_style.private_fields_style.required_prefix = _
dotnet_naming_rule.private_fields.symbols = private_fields
dotnet_naming_rule.private_fields.style = private_fields_style
dotnet_naming_rule.private_fields.severity = error
# Parameters ...
dotnet_naming_symbols.parameter_symbols.applicable_kinds = parameter, local
dotnet_naming_symbols.parameter_symbols.applicable_accesibilities = local
dotnet_naming_style.parameter_symbols_style.capitalization = camel_case
dotnet_naming_rule.parameter_symbols_camel_case.symbols = parameter_symbols
dotnet_naming_rule.parameter_symbols_camel_case.style = parameter_symbols_style
dotnet_naming_rule.parameter_symbols_camel_case.severity = error
dotnet_style_predefined_type_for_locals_parameters_members = true:error
# Interface should be prefixed with I
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
# Enum should not end with "Enum" -- TODO: Negations do not appear to be supported.
# Implicit this.
dotnet_style_qualification_for_field = false:error