-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.editorconfig
52 lines (43 loc) · 2.16 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
# Learn more: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
[*.{cs,vb}]
dotnet_style_require_accessibility_modifiers=omit_if_default:warning
dotnet_diagnostic.IDE0005.severity = warning
dotnet_diagnostic.IDE0008.severity = suggestion
dotnet_diagnostic.IDE0010.severity = suggestion
dotnet_diagnostic.IDE0022.severity = none
dotnet_diagnostic.IDE0023.severity = suggestion
dotnet_diagnostic.IDE0024.severity = suggestion
dotnet_diagnostic.IDE0036.severity = warning
dotnet_diagnostic.IDE0045.severity = suggestion
dotnet_diagnostic.IDE0046.severity = none
dotnet_diagnostic.IDE0055.severity = suggestion
dotnet_diagnostic.IDE0058.severity = none
dotnet_diagnostic.IDE0061.severity = suggestion
dotnet_diagnostic.IDE0072.severity = none
[*.xml]
indent_style = space
indent_size = 2
[*.cs]
csharp_style_namespace_declarations = file_scoped:warning
csharp_prefer_braces = when_multiline
csharp_style_var_when_type_is_apparent = true # IDE0008
csharp_style_var_elsewhere = true # IDE0008
csharp_style_expression_bodied_local_functions = when_on_single_line # IDE0061
csharp_style_expression_bodied_methods = when_on_single_line # IDE0022
csharp_style_expression_bodied_operators = when_on_single_line # IDE0023, IDE0024
#region Naming
[*.{cs,vb}]
dotnet_naming_style.prefix_m_underscore.required_prefix = m_
dotnet_naming_style.prefix_m_underscore.capitalization = pascal_case
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
dotnet_naming_rule.private_fields_with_m_underscore.symbols = private_fields
dotnet_naming_rule.private_fields_with_m_underscore.style = prefix_m_underscore
dotnet_naming_rule.private_fields_with_m_underscore.severity = warning
dotnet_naming_rule.constant_fields_with_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_with_pascal_case.style = pascal_case
dotnet_naming_rule.constant_fields_with_pascal_case.severity = warning
#endregion