forked from netclaw-dev/netclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
40 lines (32 loc) · 1.27 KB
/
.editorconfig
File metadata and controls
40 lines (32 loc) · 1.27 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
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.cs]
# Prefer collection expressions and modern initializers.
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_collection_expression = true:suggestion
# Start with one high-signal reliability rule as warning.
dotnet_diagnostic.CA2016.severity = warning
# Promote string comparison correctness to warning.
dotnet_diagnostic.CA1307.severity = warning
dotnet_diagnostic.CA1309.severity = warning
dotnet_diagnostic.CA1310.severity = warning
# Ramp-up candidates (kept as suggestion initially to avoid noisy CI failures).
dotnet_diagnostic.CA2000.severity = suggestion
dotnet_diagnostic.CA2213.severity = suggestion
dotnet_diagnostic.IDE0072.severity = suggestion
[**/*Tests/**/*.cs]
# Keep test assertion migrations incremental.
dotnet_diagnostic.CA1307.severity = suggestion
dotnet_diagnostic.CA1309.severity = suggestion
dotnet_diagnostic.CA1310.severity = suggestion
[**/*Tests/*.cs]
# Same suppressions for test files at the root of a *.Tests project folder.
dotnet_diagnostic.CA1307.severity = suggestion
dotnet_diagnostic.CA1309.severity = suggestion
dotnet_diagnostic.CA1310.severity = suggestion
[*.{md,json,yml,yaml}]
trim_trailing_whitespace = false