-
Notifications
You must be signed in to change notification settings - Fork 8
/
.editorconfig
153 lines (118 loc) · 5.83 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
root=true
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://EditorConfig.org
[*]
end_of_line=crlf
insert_final_newline=true
trim_trailing_whitespace=true
indent_style=space
# Only use "var" when type is apparent
csharp_style_var_for_built_in_types=false:suggestion
csharp_style_var_when_type_is_apparent=true:suggestion
csharp_style_var_elsewhere=false:suggestion
# Do not use "this."
dotnet_style_qualification_for_field=false:suggestion
dotnet_style_qualification_for_property=false:suggestion
dotnet_style_qualification_for_method=false:suggestion
dotnet_style_qualification_for_event=false:suggestion
# Prefix private and internals field names with '_'
dotnet_naming_rule.underscore_private_fields.symbols=private_internal_fields
dotnet_naming_rule.underscore_private_fields.style=prefix_underscore
dotnet_naming_rule.underscore_private_fields.severity=suggestion
dotnet_naming_symbols.private_internal_fields.applicable_kinds=field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities=private, internal
dotnet_naming_style.prefix_underscore.required_prefix=_
dotnet_naming_style.prefix_underscore.capitalization=camel_case
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols=constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style=pascal_case_style
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity=suggestion
dotnet_naming_symbols.constant_fields.applicable_kinds=field
dotnet_naming_symbols.constant_fields.required_modifiers=const
# Private static fields are prefixed with 's_' and are camelCased
dotnet_naming_rule.private_static_field_naming.symbols=private_static_field_symbols
dotnet_naming_rule.private_static_field_naming.style=private_static_field_style
dotnet_naming_rule.private_static_field_naming.severity=suggestion
dotnet_naming_style.private_static_field_style.required_prefix=s_
dotnet_naming_style.private_static_field_style.capitalization=camel_case
dotnet_naming_symbols.private_static_field_symbols.applicable_kinds=field
dotnet_naming_symbols.private_static_field_symbols.applicable_accessibilities=private
dotnet_naming_symbols.private_static_field_symbols.required_modifiers=static
# Use PascalCase for public static readonly fields
dotnet_naming_rule.public_static_readonly_field_casing.symbols=public_static_readonly_field_symbols
dotnet_naming_rule.public_static_readonly_field_casing.style=pascal_case_style
dotnet_naming_rule.public_static_readonly_field_casing.severity=suggestion
dotnet_naming_symbols.public_static_readonly_field_symbols.applicable_kinds=field
dotnet_naming_symbols.public_static_readonly_field_symbols.applicable_accessibilities=public
dotnet_naming_symbols.public_static_readonly_field_symbols.required_modifiers=static, readonly
# Prefer language keywords over framework type names
dotnet_style_predefined_type_for_locals_parameters_members=true:suggestion
dotnet_style_predefined_type_for_member_access=true:suggestion
# Newline settings
csharp_new_line_before_open_brace=all
csharp_new_line_before_else=true
csharp_new_line_before_catch=true
csharp_new_line_before_finally=true
csharp_new_line_before_members_in_object_initializers=true
csharp_new_line_before_members_in_anonymous_types=true
# Other
csharp_indent_labels=one_less_than_current
csharp_prefer_simple_using_statement=false:none
# Common styles
dotnet_naming_style.pascal_case_style.capitalization=pascal_case
# ReSharper properties
resharper_align_multiline_binary_expressions_chain=false
resharper_csharp_wrap_arguments_style=chop_if_long
resharper_csharp_wrap_parameters_style=chop_if_long
resharper_keep_existing_declaration_block_arrangement=true
resharper_keep_existing_enum_arrangement=false
resharper_place_field_attribute_on_same_line=false
resharper_wrap_after_declaration_lpar=true
resharper_wrap_after_invocation_lpar=true
resharper_wrap_before_first_type_parameter_constraint=true
resharper_wrap_before_invocation_rpar=true
# Microsoft .NET properties
csharp_preserve_single_line_blocks=true
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,props,targets}]
indent_size=2
[*.cs]
# CA1032: Implement standard exception constructors
dotnet_diagnostic.ca1032.severity=none
# CA1051: Do not declare visible instance fields
dotnet_diagnostic.ca1051.severity=none
# CA1060: Move pinvokes to native methods class
dotnet_diagnostic.ca1060.severity=none
# CA1062: Validate arguments of public methods
dotnet_diagnostic.ca1062.severity=none
# CA1067: Override Object.Equals(object) when implementing IEquatable<T>
dotnet_diagnostic.ca1067.severity=none
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.ca1303.severity=none
# CA1304: Specify CultureInfo
dotnet_diagnostic.ca1304.severity=none
# CA1305: Specify IFormatProvider
dotnet_diagnostic.ca1305.severity=none
# CA1307: Specify StringComparison
dotnet_diagnostic.ca1307.severity=none
# CA1707: Identifiers should not contain underscores
dotnet_diagnostic.ca1707.severity=none
# CA1712: Do not prefix enum values with type name
dotnet_diagnostic.ca1712.severity=none
# CA1715: Identifiers should have correct prefix
dotnet_diagnostic.ca1715.severity=none
# CA1716: Identifiers should not match keywords
dotnet_diagnostic.ca1716.severity=none
# CA1720: Identifier contains type name
dotnet_diagnostic.ca1720.severity=none
# CA1815: Override equals and operator equals on value types
dotnet_diagnostic.ca1815.severity=none
# CA1816: Call GC.SuppressFinalize correctly
dotnet_diagnostic.ca1816.severity=none
# CA1822: Mark members as static
dotnet_diagnostic.ca1822.severity=suggestion
# CA2000: Dispose objects before losing scope
dotnet_diagnostic.ca2000.severity=none
# CA2007: Do not directly await a Task
dotnet_diagnostic.ca2007.severity=none
# CA2008: Do not create tasks without passing a TaskScheduler
dotnet_diagnostic.ca2008.severity=suggestion