Use this tag for questions about the SonarQube Scanner, the recommended default launcher to analyze a project with SonarQube.
Questions tagged [sonarscanner]
195 questions
1
vote
0 answers
Could not resolve paths sonarscan and bitbucket
I'm trying to configure CI on my project.
Here, is the bitbucket-pipelines.yml:
clone:
depth: full
pipelines:
branches:
'{master}':
- step:
name: Tests PHPUnit
services:
…

FindL
- 495
- 6
- 25
1
vote
1 answer
sonarqube scanner for plsql files stored with .pak extension not scanning
We have stored our PL/SQL files with .sql and .pak (for packages) extensions in bitbucket and we are trying to run sonarqube scanner on these files but the scanner is not taking .pak files into consideration while scanning.
the…

Deepak.Pal
- 35
- 5
- 13
1
vote
1 answer
Unable to execute SonarScanner analysis due to Time out Exception
Versions :
Sonar : 8.8.0.42792
Sonar-scanner : 4.5.0.2216
MacOS : Catalina 10.15.6
sonar-project.properties…

Dhrubo
- 705
- 1
- 14
- 33
1
vote
1 answer
SonarScanner for .NET in Docker - solution builds with `docker run`, but not with `docker-compose`
I am trying to make code analysis using SonnarScanner for .NET using docker with nosinovacao/dotnet-sonar image, however, I cannot build a project using docker-compose while everything's fine when I use docker run with the same parameters.
The…

Łukasz Sypniewski
- 602
- 1
- 10
- 19
1
vote
1 answer
SonarQube issue status updation for external issues
I have issues reported for my project through PMD analysis and am allowing sonarqube to consume the report through external properties.
Now I can see the external issues in sonar UI, but am not able to change the issue status from open to…

priya
- 391
- 1
- 5
- 24
1
vote
1 answer
Sonar-scanner, permission denied, from docker container
I am trying to run sonar-scanner command as node-module. My sonarqube is running inside a docker container and working fine, i can see from localhost:9000.
But sonar-scanner is giving error like this:
>…

raju
- 6,448
- 24
- 80
- 163
1
vote
0 answers
Sonarqube scanner error for deletion of .sonartmp file with "DirectoryNotEmptyException"
In the Virtual Machine, am doing the sonarqube analysis using "SonarScanner.MSBuild.exe" for the dotnet solution. During the end step analysis of code completes & zipped it. but while uploading the zip content to the sonar server, it throws the…

user7014262
- 135
- 12
1
vote
0 answers
Trying to run SonarScanner with gradle on the open-source Conversations app
To learn about SonarQube I'm using the open-source app called Conversations and I'm trying to run SonarScanner with gradle. I have directly cloned the project from git and added the following configuration in the build.grade:
buildscript…

Omer Cetin
- 11
- 2
1
vote
1 answer
SonarQube - Analyse JSON File
Is it possible to analyse a json file with SonarQube? (I don't mean to analyse the format properties, I want to analyse a value in this file and trigger a rule if this value is greater than some threshold)
If this is possible I'm interested in how…

jri
- 402
- 1
- 6
- 15
1
vote
1 answer
org.sonarqube.ws.client.HttpException: Error 401
I am trying to run sonar-scanner and access quality gate results and am kind of stuck after trying various options suggested on forums. This is my first time trying to post, so please let me know if I am missing any details. I do see the json…

Anand
- 21
- 3
1
vote
1 answer
Sonarqube failed to create user cache
I'm creating a Sonarqube environment with Docker, but when I run the scanner, an error occurred.
I run the scanner directly into the container :
PS C:\docker\sonarqube\projects\test> docker exec -it sonarqube…

Lysgard
- 31
- 1
- 8
1
vote
3 answers
Why Sonar-scanner 4.2 is unable to create user cache?
Using a dockerized sonar scanner 4.2 official image I try to run a sample Docker run operation of the sonar scanner and I get
unable to create user cache: /usr/src/.sonar/cache caused by: Java.nio.file.accessdeniedexception:…

kol23
- 1,498
- 3
- 16
- 35
1
vote
0 answers
Sonar scanner with SonarJS fails to parse typescript
I am using SonarQube Scanner 3.3.0.1492, with the SonarJS 5.2.1.7778 (javascript) plugin. I did a yarn install to install typescript v3.5.3. When I run the sonar scanner, I receive a couple of different parse errors for things that normally parse…

pasquers
- 772
- 1
- 8
- 24
1
vote
1 answer
Sonarqube failed during SonarQube Scanner execution
I just connected Jenkins to sonarqube but sonarqube fails with below logs and I have no idea what went wrong:
15:28:32.897 INFO: Sensor JavaSquidSensor [java]
15:28:33.123 INFO: Configured Java source version (sonar.java.source): none
15:28:33.132…

AVarf
- 4,481
- 9
- 47
- 74
1
vote
1 answer
SonarQube Plugin Post Analysis Task only when Scanner Parameter set
I'm developing a plugin for SonarQube that will run a custom post analysis task, but only if a named scanner parameter is supplied to the sonar-scanner command. Can I do something like this?
public class MyPlugin implements Plugin {
@Override
…

Andrew Ensley
- 11,611
- 16
- 61
- 73