-
Notifications
You must be signed in to change notification settings - Fork 27
/
.editorconfig
94 lines (74 loc) · 3.75 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
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
[{*.yml,*.csproj,*.json}]
indent_size = 2
[*.cs]
# Braces
csharp_new_line_before_open_brace = none
csharp_new_line_before_members_in_object_initializers = false
csharp_new_line_before_members_in_anonymous_types = false
csharp_prefer_braces = false:warning
# Always use "this" keyword
dotnet_style_qualification_for_field = true:warning
dotnet_style_qualification_for_property = true:warning
dotnet_style_qualification_for_method = true:warning
dotnet_style_qualification_for_event = true:warning
# Use language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning
# Suggest acessibility modifier is redundant
dotnet_style_require_accessibility_modifiers = never:warning
# Never use "var"
csharp_style_var_for_built_in_types = false:warning
csharp_style_var_when_type_is_apparent = false:warning
csharp_style_var_elsewhere = false:warning
# Only file-scoped namespaces are allowed
csharp_style_namespace_declarations = file_scoped:warning
# Prefer expression bodies for single line statements
csharp_style_expression_bodied_constructors = when_on_single_line:warning
csharp_style_expression_bodied_methods = when_on_single_line:warning
csharp_style_expression_bodied_operators = when_on_single_line:warning
csharp_style_expression_bodied_properties = when_on_single_line:warning
csharp_style_expression_bodied_indexers = when_on_single_line:warning
csharp_style_expression_bodied_accessors = when_on_single_line:warning
# Symbols
dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.applicable_accessibilities = *
dotnet_naming_symbols.static_fields.required_modifiers = static
dotnet_naming_symbols.fields.applicable_kinds = field, parameter
dotnet_naming_symbols.fields.applicable_accessibilities = *
dotnet_naming_symbols.methods.applicable_kinds = method, property, event, delegate
dotnet_naming_symbols.methods.applicable_accessibilities = *
dotnet_naming_symbols.classes.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.classes.applicable_accessibilities = *
# Styles
dotnet_naming_style.camel_case.capitalization = camel_case
dotnet_naming_style.pascal_case.capitalization = pascal_case
# Rules
dotnet_naming_rule.static_fields_pascal_case.symbols = static_fields
dotnet_naming_rule.static_fields_pascal_case.severity = warning
dotnet_naming_rule.static_fields_pascal_case.style = pascal_case
dotnet_naming_rule.fields_camel_case.symbols = fields
dotnet_naming_rule.fields_camel_case.severity = warning
dotnet_naming_rule.fields_camel_case.style = camel_case
dotnet_naming_rule.methods_pascal_case.symbols = methods
dotnet_naming_rule.methods_pascal_case.severity = warning
dotnet_naming_rule.methods_pascal_case.style = pascal_case
dotnet_naming_rule.classes_pascal_case.symbols = classes
dotnet_naming_rule.classes_pascal_case.severity = warning
dotnet_naming_rule.classes_pascal_case.style = pascal_case
dotnet_analyzer_diagnostic.category-CodeQuality.severity = warning
dotnet_analyzer_diagnostic.category-Style.severity = warning
dotnet_analyzer_diagnostic.category-Performance.severity = warning
dotnet_analyzer_diagnostic.category-Design.severity = warning
dotnet_diagnostic.IDE0002.severity = none # Simplify member access
dotnet_diagnostic.IDE0051.severity = none # Remove unused private member
dotnet_diagnostic.IDE0072.severity = none # Add missing cases to switch expression
dotnet_diagnostic.IDE0130.severity = none # Namespace does not match folder structure
dotnet_diagnostic.CS8524.severity = none
dotnet_diagnostic.CS1998.severity = suggestion