-
Notifications
You must be signed in to change notification settings - Fork 63
/
.editorconfig
153 lines (121 loc) · 5.89 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
# http://editorconfig.org/
root = true
[*]
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.cs]
dotnet_naming_rule.private_constants_rule.severity = warning
dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
dotnet_naming_rule.private_instance_fields_rule.severity = warning
dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
dotnet_naming_rule.private_static_fields_rule.severity = warning
dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
dotnet_naming_rule.private_static_readonly_rule.severity = warning
dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly
[*.md]
charset = utf-8
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
charset = utf-8
indent_size = 2
[*.{sln}]
charset = utf-8
indent_style = tab
[*.{json,yml}]
charset = utf-8
indent_size = 2
[*.{cs,tt}]
charset = utf-8
indent_size = 4
dotnet_sort_system_directives_first = true
dotnet_analyzer_diagnostic.severity = error
dotnet_code_quality.severity = error
# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_prefer_braces = when_multiline:suggestion
csharp_indent_case_contents_when_block = false
# CA2007: Consider calling ConfigureAwait on the awaited task
dotnet_diagnostic.CA2007.severity = none
# IDE0065: Misplaced using directive
# Prefer using directives to be placed inside the namespace
csharp_using_directive_placement = inside_namespace
# IDE0011: Add braces
csharp_prefer_braces = when_multiline
# Use new(...)
dotnet_diagnostic.IDE0090.severity=silent
# Namespace does not match folder structure
dotnet_diagnostic.IDE0130.severity=suggestion
# Use block statement for method body
dotnet_diagnostic.IDE0022.severity=suggestion
# Simplify if statement
dotnet_diagnostic.IDE0046.severity=suggestion
# CA1721: Property names should not match get methods
dotnet_diagnostic.CA1721.severity = suggestion
# IDE0045: Use conditional if statements
dotnet_diagnostic.IDE0045.severity=suggestion
# IDE0024: Use expression body for operators
csharp_style_expression_bodied_operators = true
# CA2225: Operator overloads have named alternates
dotnet_diagnostic.CA2225.severity=suggestion
# IDE0021: Expression-bodied constructors
dotnet_diagnostic.IDE0021.severity=suggestion
# IDE0061: Use block body for local functions
dotnet_diagnostic.IDE0061.severity=suggestion
# IDE0052: Unused private member
dotnet_diagnostic.IDE0052.severity=suggestion
# This or Me qualifier
dotnet_style_qualification_for_field=true
dotnet_style_qualification_for_property=false
dotnet_style_qualification_for_method=false
dotnet_style_qualification_for_event=false
# CA1814: Prefer jagged arrays over multidimensional arrays
dotnet_diagnostic.CA1814.severity=suggestion
dotnet_diagnostic.IDE0047.severity=suggestion
# These rules cannot be enforced during build time and are hence set to suggestion.
# https://github.com/dotnet/roslyn/blob/9f87b444da9c48a4d492b19f8337339056bf2b95/src/Analyzers/Core/Analyzers/EnforceOnBuildValues.cs#L95
# https://github.com/dotnet/roslyn/issues/53215
dotnet_diagnostic.IDE0001.severity=suggestion
dotnet_diagnostic.IDE0002.severity=suggestion
dotnet_diagnostic.IDE0003.severity=suggestion
dotnet_diagnostic.IDE0006.severity=suggestion
dotnet_diagnostic.IDE0009.severity=suggestion
dotnet_diagnostic.IDE0035.severity=suggestion
dotnet_diagnostic.IDE0049.severity=suggestion
dotnet_diagnostic.IDE0079.severity=suggestion
dotnet_diagnostic.IDE1001.severity=suggestion
dotnet_diagnostic.IDE1002.severity=suggestion
dotnet_diagnostic.IDE1003.severity=suggestion
dotnet_diagnostic.IDE1004.severity=suggestion
dotnet_diagnostic.IDE1007.severity=suggestion
dotnet_diagnostic.IDE1008.severity=suggestion
dotnet_diagnostic.IDE0074.severity=suggestion
dotnet_diagnostic.IDE0240.severity=suggestion
# Enforce file header
dotnet_diagnostic.IDE0073.severity = error
file_header_template = Copyright (c) Microsoft. All rights reserved.\nLicensed under the MIT license. See LICENSE file in the project root for full license information.
# LoggerMessage.Define for high-performance logging
dotnet_diagnostic.CA1848.severity = suggestion
# Logging template should not vary between calls. To be revisited as part of
# https://github.com/Azure/iotedge-lorawan-starterkit/issues/829
dotnet_diagnostic.CA2254.severity = suggestion
# Extract strings to resource table (the solution will not be localized).
dotnet_diagnostic.CA1303.severity = none