Add code quality rule (CA2000: Dispose objects before losing scope)
MODIFY
.editorconfig
.editorconfig
@@ -245,3 +245,6 @@ csharp_style_pattern_matching_over_as_with_null_check = true:error
# CA2016: Forward the 'CancellationToken' parameter to methods that take one
dotnet_diagnostic.CA2016.severity = warning
+
+# CA2000: Dispose objects before losing scope
+dotnet_diagnostic.CA2000.severity = warning

Add code quality rule (CA2000: Dispose objects before losing scope)