Template for a good bug report, formatted with Markdown:
- SonarCloud, AzureDevops
- We are using .NET 5
- We are building on Release
BackgroudnTaskID:
Runned manually on main branch: AXbxxSUgE7LNxveghNOt
Runned automatically on PR against main branch: AXbxyUXIOqas3cnA-fGk
This is the configuration on azure pipeline:
- task: SonarSource.sonarcloud.*********.SonarCloudPrepare@1
displayName: 'Prepare analysis on SonarCloud'
inputs:
SonarCloud: SonarCloud
organization: '******'
projectKey: '******'
projectName: '******'
scannerMode: CLI
configFile: sonar-project.properties
- task: SonarSource.sonarcloud.*********.SonarCloudAnalyze@1
displayName: 'Run Code Analysis'
condition: always()
continueOnError: true
- task: SonarSource.sonarcloud.*********.SonarCloudPublish@1
displayName: 'Publish Quality Gate Result'
condition: always()
continueOnError: true
And this is sonar config file:
# Project identification
sonar.projectKey=********
sonar.projectVersion=1.0
sonar.projectName=********
# Info required for Sonar
sonar.sources=.
sonar.language=cs
sonar.sourceEncoding=UTF-8
sonar.exclusions=**/obj/**,**/bin/**,**/*.dll
sonar.flex.cobertura.reportPaths=TestResults/**/coverage.cobertura.xml
sonar.cs.vstest.reportsPaths=TestResults/**/*.trx
Issues:
On main branch it states that “The main branch of this project is empty.”
On PRs, it does not find any issue/duplication/smell, which seems wierd.