Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeadStores S1854 is extremely slow #5382

Closed
rauhs opened this issue Feb 11, 2022 · 1 comment
Closed

DeadStores S1854 is extremely slow #5382

rauhs opened this issue Feb 11, 2022 · 1 comment

Comments

@rauhs
Copy link

rauhs commented Feb 11, 2022

Hello,

version:

PackageReference Include="SonarAnalyzer.CSharp" Version="8.33.0.40503"

I am seeing

Analyzer Summary
    14:22.455   SonarAnalyzer.CSharp, Version=8.33.0.0, Culture=neutral, PublicKeyToken=c5b62af9de6d7244
        SonarAnalyzer.Rules.CSharp.DeadStores (S1854) = 6:25.949
        SonarAnalyzer.Rules.CSharp.PrivateFieldUsedAsLocalVariable (S1450) = 1:22.248
        SonarAnalyzer.Rules.CSharp.ClassAndMethodName (S100, S101) = 23.728 s
        [...]
    2:32.987   Microsoft.CodeAnalysis.NetAnalyzers, Version=6.0.5.1901, Culture=neutral, PublicKeyToken=31bf3856ad364e35
        Microsoft.CodeQuality.Analyzers.Maintainability.AvoidDeadConditionalCode (CA1508) = 47.422 s
        Microsoft.NetCore.Analyzers.Security.ReviewCodeForInformationDisclosureVulnerabilities (CA3004) = 20.500 s
        Microsoft.NetCore.Analyzers.Runtime.DisposeObjectsBeforeLosingScope (CA2000) = 16.725 s
        [...]

which is from a /p:ReportAnalyzer=true.

I've reported it also to Roslyn:

dotnet/roslyn-analyzers#5870

I'm not entirely sure if this is now a Roslyn or a SonarSource issue.

@pavel-mikula-sonarsource
Copy link
Contributor

Hi @rauhs,

Thank you for reporting this. We're investigating the issue in #5384 that you can track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants