Skip to content

Commit b0acc21

Browse files
author
duende-github-bot
committed
Update .editorconfig
1 parent 99b3283 commit b0acc21

File tree

1 file changed

+26
-54
lines changed

1 file changed

+26
-54
lines changed

.editorconfig

Lines changed: 26 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,65 +7,37 @@ indent_style = space
77
insert_final_newline = true
88

99
[*.cs]
10-
indent_size = 4
11-
12-
# Remove this or Me qualification
13-
dotnet_diagnostic.IDE0003.severity = error
14-
dotnet_style_qualification_for_event = false:error
15-
dotnet_style_qualification_for_field = false:error
16-
dotnet_style_qualification_for_method = false:error
17-
dotnet_style_qualification_for_property = false:error
18-
19-
# Use var instead of explicit type
20-
dotnet_diagnostic.IDE0007.severity = error
21-
csharp_style_var_elsewhere = true
22-
csharp_style_var_for_built_in_types = true
23-
csharp_style_var_when_type_is_apparent = true
24-
25-
# Remove unnecessary using directives
26-
dotnet_diagnostic.IDE0005.severity = warning
27-
28-
# Use expression body for constructors
29-
dotnet_diagnostic.IDE0021.severity = error
10+
csharp_style_expression_bodied_accessors = true
3011
csharp_style_expression_bodied_constructors = true
31-
32-
# Use expression body for methods
33-
dotnet_diagnostic.IDE0022.severity = error
12+
csharp_style_expression_bodied_indexers = true
3413
csharp_style_expression_bodied_methods = true
35-
36-
# Use expression body for conversion operators
37-
dotnet_diagnostic.IDE0023.severity = error
3814
csharp_style_expression_bodied_operators = true
39-
40-
# Use expression body for operators
41-
dotnet_diagnostic.IDE0024.severity = error
4215
csharp_style_expression_bodied_operators = true
43-
44-
# Use expression body for properties
45-
dotnet_diagnostic.IDE0025.severity = error
4616
csharp_style_expression_bodied_properties = true
47-
48-
# Use expression body for indexers
49-
dotnet_diagnostic.IDE0026.severity = error
50-
csharp_style_expression_bodied_indexers = true
51-
52-
# Use expression body for accessors
53-
dotnet_diagnostic.IDE0027.severity = error
54-
csharp_style_expression_bodied_accessors = true
55-
56-
# Use language keywords instead of framework type names for type references
57-
dotnet_diagnostic.IDE0049.severity = error
17+
csharp_style_namespace_declarations = file_scoped
18+
csharp_style_var_elsewhere = true
19+
csharp_style_var_for_built_in_types = true
20+
csharp_style_var_when_type_is_apparent = true
21+
dotnet_diagnostic.IDE0003.severity = error # Remove this or Me qualification
22+
dotnet_diagnostic.IDE0005.severity = warning # Remove unnecessary using directives
23+
dotnet_diagnostic.IDE0007.severity = error # Use var instead of explicit type
24+
dotnet_diagnostic.IDE0021.severity = error # Use expression body for constructors
25+
dotnet_diagnostic.IDE0022.severity = error # Use expression body for methods
26+
dotnet_diagnostic.IDE0023.severity = error # Use expression body for conversion operators
27+
dotnet_diagnostic.IDE0024.severity = error # Use expression body for operators
28+
dotnet_diagnostic.IDE0025.severity = error # Use expression body for properties
29+
dotnet_diagnostic.IDE0026.severity = error # Use expression body for indexers
30+
dotnet_diagnostic.IDE0027.severity = error # Use expression body for accessors
31+
dotnet_diagnostic.IDE0049.severity = error # Use language keywords instead of framework type names for type references
32+
dotnet_diagnostic.IDE0055.severity = warning # Formatting rule
33+
dotnet_diagnostic.IDE0073.severity = warning # Require file header
34+
dotnet_diagnostic.IDE0161.severity = error # Use file-scoped namespace
35+
dotnet_sort_system_directives_first = true
5836
dotnet_style_predefined_type_for_locals_parameters_members = true
5937
dotnet_style_predefined_type_for_member_access = true
60-
61-
# Formatting rule
62-
dotnet_diagnostic.IDE0055.severity = warning
63-
dotnet_sort_system_directives_first = true
64-
65-
# Require file header
66-
dotnet_diagnostic.IDE0073.severity = warning
38+
dotnet_style_qualification_for_event = false:error
39+
dotnet_style_qualification_for_field = false:error
40+
dotnet_style_qualification_for_method = false:error
41+
dotnet_style_qualification_for_property = false:error
6742
file_header_template = Copyright (c) Duende Software. All rights reserved.\nLicensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
68-
69-
# Use file-scoped namespace
70-
dotnet_diagnostic.IDE0161.severity = error
71-
csharp_style_namespace_declarations = file_scoped
43+
indent_size = 4

0 commit comments

Comments
 (0)