I’m getting started with SonarCloud. I have an older .Net Framework 4.8 app with a repo in Azure Devops. I read the instructions for how to setup my YAML pipeline.
The instructions then say to run tasks in this order: Nuget restore, SonarCloudPrepare, VSBuild, SonarCloudAnalyze, SonarCloudPublish.
Is the build necessary to do a static code analysis? Currently in our pipeline we have two stages with SonarCloud being done in stage 1. Stage 2 is build, create artifact, and deploy if desired. This incurs two builds, which for this repo is slow due to size. This repo has no unit tests.
Should I re-organize this pipeline so there need only be one build step?