-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.editorconfig
93 lines (85 loc) · 4.25 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
90
91
92
93
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
# Based on Google's style guide https://google.github.io/styleguide/csharp-style.html
[*.cs]
# Core
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
max_line_length = 100
guidelines = 100
# Naming rules
dotnet_naming_symbols.types.applicable_kinds = class,struct,enum,namespace,type_parameter,delegate
dotnet_naming_symbols.types.applicable_accessibilities = *
dotnet_naming_symbols.interfaces.applicable_kinds = interface
dotnet_naming_symbols.interfaces.applicable_accessibilities = *
dotnet_naming_symbols.public_symbols.applicable_kinds = method,field,property,events
dotnet_naming_symbols.public_symbols.applicable_accessibilities = public
dotnet_naming_symbols.non_public.applicable_kinds = method,field,property,events
dotnet_naming_symbols.non_public.applicable_accessibilities = internal,private,protected,protected_internal,private_protected,local
dotnet_naming_symbols.local_vars.applicable_kinds = local,local_function,parameter
dotnet_naming_symbols.local_vars.applicable_accessibilities = *
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_style.camel_case.capitalization = camel_case
dotnet_naming_style.interfaces.capitalization = pascal_case
dotnet_naming_style.interfaces.required_prefix = I
dotnet_naming_style.non_public.capitalization = camel_case
dotnet_naming_style.non_public.required_prefix = _
dotnet_naming_rule.types.symbols = types
dotnet_naming_rule.types.style = pascal_case
dotnet_naming_rule.types.severity = error
dotnet_naming_rule.interfaces.symbols = interfaces
dotnet_naming_rule.interfaces.style = interfaces
dotnet_naming_rule.interfaces.severity = error
dotnet_naming_rule.public_symbols.symbols = public_symbols
dotnet_naming_rule.public_symbols.style = pascal_case
dotnet_naming_rule.public_symbols.severity = error
dotnet_naming_rule.non_public.symbols = non_public
dotnet_naming_rule.non_public.style = non_public
dotnet_naming_rule.non_public.severity = error
dotnet_naming_rule.local_vars.symbols = local_vars
dotnet_naming_rule.local_vars.style = camel_case
dotnet_naming_rule.local_vars.severity = error
# Organization
csharp_preferred_modifier_order = public,protected,internal,private,new,abstract,virtual,override,sealed,static,readonly,extern,unsafe,volatile,async
dotnet_sort_system_directives_first = true
csharp_using_directive_placement = outside_namespace
# Whitespace rules
csharp_preserve_single_line_statements = false
csharp_prefer_braces = true
csharp_new_line_before_open_brace = none
csharp_new_line_before_else = false
csharp_new_line_before_catch = false
csharp_new_line_before_finally = false
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false
# C# coding guidelines
dotnet_style_readonly_field = true