-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.editorconfig
More file actions
78 lines (63 loc) · 2.77 KB
/
.editorconfig
File metadata and controls
78 lines (63 loc) · 2.77 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
75
76
77
78
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.cs]
dotnet_language_version = latest
# Never qualify with `this.`
dotnet_style_qualification_for_field = false:none
dotnet_style_qualification_for_property = false:none
dotnet_style_qualification_for_method = false:none
dotnet_style_qualification_for_event = false:none
dotnet_diagnostic.IDE0009.severity = none
dotnet_diagnostic.IDE0003.severity = none
dotnet_diagnostic.SA1101.severity = none
# Disable file headers + all documentation
dotnet_diagnostic.SA1633.severity = none
dotnet_analyzer_diagnostic.category-Documentation.severity = none
# Usings outside namespace (CSharpier already does this; this keeps IDEs aligned)
csharp_using_directive_placement = outside_namespace:warning
dotnet_diagnostic.IDE0065.severity = warning
dotnet_diagnostic.SA1200.severity = none
# Naming: const + static readonly => ALL_CAPS_WITH_UNDERSCORES
dotnet_naming_rule.constants_all_caps.severity = warning
dotnet_naming_rule.constants_all_caps.symbols = constants
dotnet_naming_rule.constants_all_caps.style = all_caps_underscores
dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.required_modifiers = const
dotnet_naming_style.all_caps_underscores.capitalization = all_upper
dotnet_naming_style.all_caps_underscores.word_separator = _
dotnet_naming_rule.static_readonly_all_caps.severity = warning
dotnet_naming_rule.static_readonly_all_caps.symbols = static_readonly_fields
dotnet_naming_rule.static_readonly_all_caps.style = all_caps_underscores
dotnet_naming_symbols.static_readonly_fields.applicable_kinds = field
dotnet_naming_symbols.static_readonly_fields.required_modifiers = static, readonly
# Naming: private instance fields => _camelCase
dotnet_naming_rule.private_fields_underscore.severity = warning
dotnet_naming_rule.private_fields_underscore.symbols = private_fields
dotnet_naming_rule.private_fields_underscore.style = underscore_prefix
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_symbols.private_fields.applicable_modifiers = !static
dotnet_naming_style.underscore_prefix.required_prefix = _
dotnet_naming_style.underscore_prefix.capitalization = camel_case
# Prefer fields first
dotnet_sort_system_directives_first = true
# ConfigureAwait
[*.cs]
dotnet_diagnostic.CA2007.severity = warning
[*Grain.cs]
dotnet_diagnostic.CA2007.severity = none
[Grains/**/*.cs]
dotnet_diagnostic.CA2007.severity = none
[Turbo.Rooms/**/*.cs]
dotnet_diagnostic.CA2007.severity = none
[Turbo.Inventory/**/*.cs]
dotnet_diagnostic.CA2007.severity = none
[Turbo.Players/**/*.cs]
dotnet_diagnostic.CA2007.severity = none