Skip to content

Commit

Permalink
Add CA2000 rule to .editorconfig with warning severity
Browse files Browse the repository at this point in the history
Updated .editorconfig to include a new rule enforcing the CA2000 diagnostic, which ensures objects are disposed of before losing scope. The severity for this rule is set to "warning" to improve resource management and code quality.
  • Loading branch information
majorsilence committed Jan 12, 2025
1 parent fa6ec29 commit 455e48f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,6 @@ dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

# CA2000: Dispose objects before losing scope
dotnet_diagnostic.CA2000.severity = warning

0 comments on commit 455e48f

Please sign in to comment.