Skip to content

Commit 51491c5

Browse files
committed
docs: make .editorconfig same as one I use in project
1 parent 01f2a93 commit 51491c5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.editorconfig

+11-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ root = true
1111
insert_final_newline = true
1212
indent_style = space
1313
indent_size = 4
14-
guidelines = 120
14+
guidelines = 140
1515

1616

1717
# C# files
@@ -86,7 +86,7 @@ csharp_preserve_single_line_statements = false
8686
dotnet_separate_import_directive_groups = false
8787

8888
# IDE0005: Remove unnessecary using statements
89-
dotnet_diagnostic.IDE0005.severity = warning
89+
dotnet_diagnostic.IDE0005.severity = error
9090

9191
# Expression-level preferences
9292
dotnet_style_object_initializer = true:suggestion
@@ -169,10 +169,16 @@ dotnet_naming_style.end_in_async.required_suffix = Async
169169
dotnet_naming_style.end_in_async.capitalization = pascal_case
170170
dotnet_naming_style.end_in_async.word_separator =
171171

172-
# ---- Latest csharp features ----- #
172+
# IDE0290 Use primary constructor
173+
# https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-12#primary-constructors
174+
# https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/primary-constructors
175+
# will disable this rule for now until I decide if I like it and want to use it.
176+
# dotnet_diagnostic.IDE0290.severity = none | error | suggestion
177+
178+
# IDE0290 Use primary constructor
179+
dotnet_diagnostic.IDE0290.severity = none
173180

174-
# guidelines support
175-
guidelines = 120
181+
# ---- Latest csharp features ----- #
176182

177183
# CA1031: Do not catch general exception types
178184
dotnet_diagnostic.CA1031.severity = none

0 commit comments

Comments
 (0)