-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
56 lines (47 loc) · 2.82 KB
/
.editorconfig
File metadata and controls
56 lines (47 loc) · 2.82 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
root = true
[*.{cs,fs,fsx}]
indent_size = 4
indent_style = space
[*.{sln,csproj,fsproj,config,xml,props}]
indent_size = 2
indent_style = space
[*.cs]
# Disallow "this." keyword qualification in code
dotnet_style_qualification_for_field = false:error
dotnet_style_qualification_for_property = false:error
dotnet_style_qualification_for_method = false:error
dotnet_style_qualification_for_event = false:error
# Require "_" prefix for private instance fields
dotnet_naming_symbols.private_instance_fields.applicable_kinds = field
dotnet_naming_symbols.private_instance_fields.applicable_accessibilities = private
dotnet_naming_style.private_instance_fields_underscore.required_prefix = _
dotnet_naming_style.private_instance_fields_underscore.capitalization = camel_case
dotnet_naming_rule.private_instance_fields_should_be_underscored.symbols = private_instance_fields
dotnet_naming_rule.private_instance_fields_should_be_underscored.style = private_instance_fields_underscore
dotnet_naming_rule.private_instance_fields_should_be_underscored.severity = error
# Require PascalCase for private constants
dotnet_naming_symbols.private_constants.applicable_kinds = field
dotnet_naming_symbols.private_constants.applicable_accessibilities = private
dotnet_naming_symbols.private_constants.required_modifiers = const
dotnet_naming_style.private_constants_pascal_case.capitalization = pascal_case
dotnet_naming_rule.private_constants_should_be_pascal_case.symbols = private_constants
dotnet_naming_rule.private_constants_should_be_pascal_case.style = private_constants_pascal_case
dotnet_naming_rule.private_constants_should_be_pascal_case.severity = error
# Require "s_" prefix for private static fields
dotnet_naming_symbols.private_static_fields.applicable_kinds = field
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private
dotnet_naming_symbols.private_static_fields.required_modifiers = static
dotnet_naming_style.private_static_fields_prefixed.required_prefix = s_
dotnet_naming_style.private_static_fields_prefixed.capitalization = camel_case
dotnet_naming_rule.private_static_fields_should_be_prefixed.symbols = private_static_fields
dotnet_naming_rule.private_static_fields_should_be_prefixed.style = private_static_fields_prefixed
dotnet_naming_rule.private_static_fields_should_be_prefixed.severity = suggestion
# Require properties to start with uppercase
dotnet_naming_symbols.properties.applicable_kinds = property
dotnet_naming_symbols.properties.applicable_accessibilities = *
dotnet_naming_style.properties_pascal_case.capitalization = pascal_case
dotnet_naming_rule.properties_should_be_pascal_case.symbols = properties
dotnet_naming_rule.properties_should_be_pascal_case.style = properties_pascal_case
dotnet_naming_rule.properties_should_be_pascal_case.severity = error
# Enable code style warnings
dotnet_diagnostic.IDE1006.severity = warning