-
Notifications
You must be signed in to change notification settings - Fork 276
/
Copy path.editorconfig
43 lines (34 loc) · 1.36 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
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
[*.cs]
indent_size = 4
# Remove this or Me qualification
dotnet_diagnostic.IDE0003.severity = error
dotnet_style_qualification_for_event = false:error
dotnet_style_qualification_for_field = false:error
dotnet_style_qualification_for_method = false:error
dotnet_style_qualification_for_property = false:error
# Use var instead of explicit type
dotnet_diagnostic.IDE0007.severity = error
csharp_style_var_elsewhere = true
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true
# Remove unnecessary using directives
dotnet_diagnostic.IDE0005.severity = warning
# Use language keywords instead of framework type names for type references
dotnet_diagnostic.IDE0049.severity = error
dotnet_style_predefined_type_for_locals_parameters_members = true
dotnet_style_predefined_type_for_member_access = true
# Formatting rule
dotnet_diagnostic.IDE0055.severity = warning
dotnet_sort_system_directives_first = true
# Require file header
dotnet_diagnostic.IDE0073.severity = warning
file_header_template = Copyright (c) Duende Software. All rights reserved.\nLicensed under the MIT License. See LICENSE in the project root for license information.
# Use file-scoped namespace
dotnet_diagnostic.IDE0161.severity = error
csharp_style_namespace_declarations = file_scoped