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
1 answer
SonarScanner .NET (Framework) | Post-processing failed
The situation
Hello everyone, I have a web site project I need to scan with the SonarScanner .NET because the "default cli" SonarScanner doesn't include C#.
The problem
I am not been able to pass the post-processing phase.
begin and rebuild commands…

Bit
- 21
- 7
0
votes
0 answers
Can SonarQube really detect memory leaks?
I'm using SonarQube (v8.9) at work with SonarScanner (v4.2).
I've created two memory leaks, one in Javascript and one in Python. They couldn't be detected from SonarScanner.
These are the snippets:
JS:
beforeMount () {
Window.test = {
name:…

KeeperOfTheSevenKeys
- 69
- 1
- 10
0
votes
1 answer
ERROR: Error during SonarScanner execution java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1024
I am not able to figure out what is wrong with the sonar-scanner cli in my AWS CodeBuild container. It was working perfectly fine and stopped working all of sudden. I have searched for the exception and don't seem to figure out what is wrong with…

AJINKYA
- 741
- 2
- 9
- 20
0
votes
0 answers
Sonar-scanner failed while loading active rules
I have SonarQube (community edition) installed through zip file. The version is 9.4. SonarScanner is installed through zip and version is 4.7. I am using macOS.
SonarQube runs fine on port 9000 and project configuration and all is done correctly.…

Nidhi Dadiya
- 798
- 12
- 31
0
votes
1 answer
Dotnet scanner error on Gitlab pipeline, how to resolve?
I have sonarqube installed via an image with docker on a ubuntu 20.04 machine.
I have gitlab running and use the pipeline to execute sonar scans. For python and javascript repositories this is working just fine, but I have multiple c# projects I…

Mario
- 582
- 5
- 18
0
votes
1 answer
How to set SonarScanner New Code to Reference Branch at scanner level?
I can set the branch name and sonarqube project ID when I use the Sonar Scanner, which is used to publish my scanner result up to the server. How to I also set the New Code to a specific reference branch name? This link tells me know to configure it…

BoBoDev
- 847
- 1
- 8
- 17
0
votes
2 answers
How to configure sonar properties for C++ project
I am trying to generate sonar report for C++ project. But I am getting "Please provide compiled classes of your project with sonar.java.binaries property" error. I am using SonarQube Data Center EditionVersion 7.9.4 (build 35981). PFB properties…

Sangeetharaj
- 169
- 3
- 14
0
votes
1 answer
How to wait for background task in jenkins pipeline for sonar scanner
I have a jenkins pipeline which scans the project with command
/opt/sonar-scanner/bin/sonar-scanner
but after the completion of sonarscan in the jenkins pipeline the results are not immediately reflected in the sonarqube because my project is very…

bonthusaireddy
- 25
- 1
- 7
0
votes
1 answer
SonarQube check on code then pass to git/repo
I want to check the developer code with SonarQube before push the code into Git.
it is technically possible? if yes please explain, how developer push the code into sonarqube and then passed to git if meet the required quality.

Muhammad Salahuddin
- 19
- 1
- 10
0
votes
1 answer
What is the Sonarqube dotnet SONAR_SCANNER_OPTS equivalent?
We have the following scenario: scan two projects in Windows 10 using sonarqube.
Project to be scanned with sonar scanner cli (Java version)
Project to be scanned with sonar scanner dotnet (dotnet global tool version)
The sonarqube server is…

Harold Reese
- 1
- 3
0
votes
2 answers
Sonarscanner command is failing abruptly
we are using gitlab pipeline where Sonarscanner is used to scan the code. the codebase is .NET and all unit test cases along with codebase builds and executes fine.
recently after integrating sonarqube, it is failing abruptly with below error.
the…

user2315104
- 2,378
- 7
- 35
- 54
0
votes
1 answer
Either remove this useless object instantiation of class "EligibilityImport" or use it
I'm using SonarQube to scan my Laravel application and it doesn't like the following code:
class EligibilityImportJob implements ShouldQueue
{
use Dispatchable,
InteractsWithQueue,
Queueable,
SerializesModels;
/**…

zoltalar
- 119
- 1
- 9
0
votes
2 answers
SonarQube Scanner fails in a Jenkins pipeline command not found
I'd like to run SonarQube Scanner from a Jenkins pipeline and I followed the documentation.
Regarding the error, it seems that the scanner is present but some commands are not found. My jenkins instance runs in local.
error message :
+…

daniel meyer
- 67
- 1
- 8
0
votes
0 answers
Code coverage won't display in Sonarqbue when posting trhough sonar scanner
Sonarqube server 6.7.7
Sonar scanner 4.6.2…

bentoi
- 49
- 4
0
votes
0 answers
Unable to run sonar-scanner for sonarqube over https
I have a sonarQube running over https. In order to reach it I have been provided two file( both .pem), one is having certificate and other is having private key.
-----BEGIN…

Lakshay Jain
- 1
- 1