Skip to content

Commit 3b64498

Browse files
committed
Update with latest preferences.
1 parent 743940f commit 3b64498

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

.editorconfig

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,32 @@ charset = utf-8-bom
2424
[*.*proj]
2525
charset = utf-8-bom
2626

27-
[*.{config,json,jsonc,md,*proj,props,runsettings,targets,*xml,yaml,yml}]
27+
[*.{config,json,jsonc,md,*proj,props,runsettings,slnLaunch,targets,*xml,yaml,yml}]
2828
indent_size = 2
2929

30-
[*.cs]
31-
csharp_space_after_cast = true
32-
dotnet_sort_system_directives_first = true
30+
[*.slnLaunch]
31+
insert_final_newline = false
3332

3433
[dotnet-tools.json]
3534
insert_final_newline = false
35+
36+
[*.cs]
37+
# C# Diagnostics
38+
dotnet_diagnostic.CA1859.severity = none # CA1859: Use concrete types when possible for improved performance
39+
40+
# C# Style Conventions
41+
# Below are deviations from the default documented here:
42+
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
43+
44+
csharp_indent_case_contents_when_block = false # was true
45+
csharp_prefer_braces = when_multiline # was true
46+
csharp_space_after_cast = true # was false
47+
csharp_style_namespace_declarations = file_scoped:suggestion # was block_scoped
48+
csharp_style_prefer_primary_constructors = false # was true
49+
csharp_style_var_elsewhere = true # was false
50+
csharp_style_var_for_built_in_types = true # was false
51+
csharp_style_var_when_type_is_apparent = true # was false
52+
53+
dotnet_sort_system_directives_first = true # was false
54+
dotnet_style_allow_multiple_blank_lines_experimental = false:warning # was true
55+
dotnet_style_namespace_match_folder = true:none # was true

0 commit comments

Comments
 (0)