Use this tag for questions about the SonarQube Scanner, the recommended default launcher to analyze a project with SonarQube.
Questions tagged [sonarscanner]
195 questions
0
votes
0 answers
Generate sonar-reports on a ruby project using gem
I have a ruby project setup on gitlab and I need to generate sonar coverage for it. There is no way to setup sonar-scanner other than using gemfile. How can I achieve that? Also, do I have to generate the reports using bundle exec sonar-scanner…

Aditi Sharma
- 38
- 5
0
votes
1 answer
How to exclude UI component from SonarQube Coverage but include in Code inspection?
Is there a way to make some settings so SonarQube will inspect all files but in Coverage, it excludes UI components made in React Native?

Sangeeta
- 961
- 2
- 13
- 34
0
votes
0 answers
dotnet-SonarScanner - unable to analyze C# files
I am executing Sonar in GitHub using SonarScanner - dotnet tool install --global dotnet-sonarscanner --version 5.2.2 - and it is providing a result.
SonarQube: Community version 7.9.4
dotnet-SonarScanner: 4.10.0 / 5.2.2 (tried with both and earlier…

I Love Stackoverflow
- 6,738
- 20
- 97
- 216
0
votes
1 answer
SonarQube Specific Build and Report Generation
I am currently using SonarQube Enterprise Edition - Version 8.7.
Is there an option to somehow get a specific sonar report as opposed to just "latest"?
And is it possible to have scan or SAST reports generated/exported in pdf or html format?
For…

Hammed
- 1,457
- 1
- 24
- 37
0
votes
1 answer
SonarQube.Analysis.xml being ignored
I'm new to Sonarqube. I've just started to run sonarscanner on a .Net Core C# application. The scan runs ok and the analysis is being shown on our corporate sonarqube site.
The solution has a UI project which contains javascript. I want to exclude…
0
votes
1 answer
Sonarqube setup throws "Could not create the Java Virtual Machine" error in MAC terminal
Hi Iam following below youtube tutorial
Youtube tutorial
and at this step Mike:macosx-universal-64 mike$ sh sonar.sh console am getting below error
Running SonarQube...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm…

KNP
- 65
- 1
- 7
0
votes
2 answers
Sonarqube qualitygate status is pending in Azure pipelines
sonarqube quality gate status check shows waiting in azure devops pipeline for few projects.
where as this works fine for other projects.
I verified and the PAT seems okay.
Let me know what could be the reason?
using sonarqube 8.5 V

priya
- 391
- 1
- 5
- 24
0
votes
1 answer
SonarQube scanner and Jenkins parallel build
I have two .NET solutions, one is in .NET 5 and other is in .NET Classic 4.7.2. Each solution has separate Jenkins build job. Each job also analyze the solution using SonarQube's MSBuild scanner.
I am using SonarQube Server version 8.5
Scanner for…

LP13
- 30,567
- 53
- 217
- 400
0
votes
0 answers
Which is the best way to analyse gradle project sonar analysis - gradle task or SonarScanner and why
Which is the best way to analyse sonar on a gradle project - gradle task "sonarqube" or SonarScanner and why.?

Akansha Jain
- 1
- 2
0
votes
1 answer
Error while running docker sonarscanner begin command
I pulled the latest docker image for sonarqube and the image runs fine. The sonarqube server is listening at localhost:9000. When I run the dotnet sonarscanner begin to analyze asp.net Core 3.1 project, after some time, I get timeout error. Below is…

cmp
- 35
- 6
0
votes
1 answer
Jenkins sonarscanner shows enconding warnings
I've just deployed a CI system based on jenkins plus sonarqube. Once Jenkins Sonnarscanner starts his part of the Pipeline I can see a lot of messages such as the following:
WARN: Invalid character encountered in file…
0
votes
2 answers
Getting error while running sonar scannar using cloud build with an advantage of secret manager
Can you please help on my below issue.
As i am doing sonar scanner using cloud build with an advantage of secret manger but facing issue.
And followed same steps of https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
here is my…

Mahaboob
- 9
- 2
0
votes
1 answer
SonarQube fixed issues are still shown even when the code base has changed
I have realized SonarQube shows issue status as fixed when the codebase which resulted in the analysis is no longer available.
Is there any possibility to remove these fixed issues from SonarQube UI as when I am doing an API call to fetch the…

Padmapriya Kp
- 55
- 7
0
votes
1 answer
Project code is not being analyzed for sonarqube
I have a repo in azure DevOps with only folder as test.
Now, I have given the task structure in this way in azure DevOps. But I cannot see the code getting analyzed in sonarqube. The code tab shows blank. Could someone help me with where I am going…

priya
- 391
- 1
- 5
- 24
0
votes
1 answer
Sonarqube gitlab report publisher not finishing
I am running sonar-scanner for a repo from gitlab on jenkins. Sonar-scanner upload reports to sonarqube successfully.
The roadmap on jenkins is that: clone repo from gitlab. Start sonar-scanner inside docker container. Sonar-scanner upload reports…

rmznbyk 1
- 1,104
- 2
- 13
- 27