Skip to content

Commit

Permalink
docs: make .editorconfig same as one I use in project
Browse files Browse the repository at this point in the history
  • Loading branch information
solrevdev committed Mar 22, 2024
1 parent 01f2a93 commit 51491c5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ root = true
insert_final_newline = true
indent_style = space
indent_size = 4
guidelines = 120
guidelines = 140


# C# files
Expand Down Expand Up @@ -86,7 +86,7 @@ csharp_preserve_single_line_statements = false
dotnet_separate_import_directive_groups = false

# IDE0005: Remove unnessecary using statements
dotnet_diagnostic.IDE0005.severity = warning
dotnet_diagnostic.IDE0005.severity = error

# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
Expand Down Expand Up @@ -169,10 +169,16 @@ dotnet_naming_style.end_in_async.required_suffix = Async
dotnet_naming_style.end_in_async.capitalization = pascal_case
dotnet_naming_style.end_in_async.word_separator =

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

# IDE0290 Use primary constructor
dotnet_diagnostic.IDE0290.severity = none

# guidelines support
guidelines = 120
# ---- Latest csharp features ----- #

# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = none
Expand Down

0 comments on commit 51491c5

Please sign in to comment.