Version: 8.6 (Docker)
We use SonarQube in our GitLab CI pipeline.
We analyse C# code with the following script in te pipeline:
dotnet sonarscanner begin /k:${SONAR_PROJECT} /d:sonar.host.url=${SONAR_HOST_URL} /d:sonar.login=${SONAR_TOKEN} /d:sonar.cs.opencover.reportsPaths=$test/TestResults/coverage.opencover.xml /d:sonar.cs.xunit.reportsPaths=$test/TestResults/d:sonar.gitlab.commit_sha=%CI_COMMIT_SHA% /d:sonar.gitlab.project_id=%CI_PROJECT_ID% /d:sonar.gitlab.ref_name=%CI_COMMIT_REF_NAME% /d:sonar.scm.exclusions.disabled=false /d:sonar.exclusions="Project/Assets/**, Project/Migrations/**"
dotnet build
dotnet test --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
dotnet sonarscanner end /d:sonar.login=${SONAR_TOKEN}
Are there any optimalizations to perform with the commands?