Open sharwell opened 3 years ago
This analyzer had performance improvements in the past. See https://github.com/dotnet/roslyn-analyzers/issues/3738
The observations that led to this issue were based on a commit from just a few days ago.
Yep I didn't mean this was fixed. But noting a similar issue just for reference.
Analyzer
Diagnostic ID: CA2000:
Dispose objects before losing scope
Analyzer source
Version: 5.0.4-preview1.21126.5
Describe the bug
CA2000 has been disabled in dotnet/roslyn-analyzers due to its pronounced impact on build times. The underlying performance issue(s) should be investigated and resolved so it can be enabled again.
Steps To Reproduce
/bl /p:ReportAnalyzer=true
Expected behavior
CA2000 should not be responsible for significant analyzer time during the build.
Actual behavior
CA2000 is responsible for the majority of all analyzer time in the build.
Additional context
CA2000 was disabled in #4862.