-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
74 lines (64 loc) · 2.92 KB
/
Copy path.editorconfig
File metadata and controls
74 lines (64 loc) · 2.92 KB
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
root = true
# General
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 240
max_empty_lines = 1
# C# files
[*.cs]
language_version = latest
indent_size = 4
# Naming conventions
dotnet_naming_rule.private_fields_should_have_underscore_prefix.severity = warning
dotnet_naming_rule.private_fields_should_have_underscore_prefix.symbols = private_fields
dotnet_naming_rule.private_fields_should_have_underscore_prefix.style = underscore_prefix
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_style.underscore_prefix.required_prefix = _
dotnet_naming_style.underscore_prefix.capitalization = camel_case
dotnet_naming_rule.types_should_be_pascal_case.severity = warning
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum, delegate
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
dotnet_naming_rule.methods_should_be_pascal_case.severity = warning
dotnet_naming_rule.methods_should_be_pascal_case.symbols = methods
dotnet_naming_rule.methods_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.methods.applicable_kinds = method
dotnet_naming_rule.constants_should_be_pascal_case.severity = warning
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
dotnet_naming_rule.constants_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.required_modifiers = const
# Style rules
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = true:warning
csharp_prefer_braces = true:warning
csharp_style_expression_bodied_methods = false:warning
csharp_style_expression_bodied_properties = when_on_single_line:warning
csharp_style_expression_bodied_ctors = false:warning
csharp_style_qualification_for_field = false:warning
csharp_style_qualification_for_property = false:warning
csharp_style_qualification_for_method = false:warning
csharp_style_qualification_for_event = false:warning
csharp_style_constructor_initializer = same_line:warning
csharp_preserve_single_line_statements = true:warning
csharp_preserve_single_line_blocks = true:warning
csharp_style_wrap_long_argument_lists = when_long:warning
csharp_style_wrap_long_parameter_lists = when_long:warning
csharp_style_wrap_parameters = false:warning
csharp_style_wrap_arguments = false:warning
# Organize usings
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = true
# Documentation
csharp_style_require_documentation = true:suggestion
# XML files: prevent line wrapping and set indentation
[*.xml]
max_line_length = 0
indent_style = space
indent_size = 2