Help with speeding up .net scan times

Must-share information:

  • Using SonarQube developer (10.1.0.73491) + SonarScanner for MSBuild 5.13
  • SonarQube is deployed via zip

Is there anything we can be doing to speed up our scan times? Here are some details:
Our project has ~650k LOC (mostly c# - .net framework, typescript, html and css)

  • average ~40m for the total process:
    • MSBuild.exe: ~10m (after running SonarScanner.MSBuild.exe begin)
    • Sonar finish step: ~25m

Things we’ve tried:

  • Excluded as much code as possible (we’re at the smallest reasonable size)
  • Disabled most of the security rules (which seemed to take the most time - we’re running just the security rules on their own in a separate Sonar project for now)

Please let me know if more info is needed, and thanks in advance!

Hey there.

Have you looked at this guide?

I hadn’t seen that post - I’ll read through and try what’s on there and post a followup if needed. Thanks!

1 Like