Questions tagged [sonarscanner]

Use this tag for questions about the SonarQube Scanner, the recommended default launcher to analyze a project with SonarQube.

1
vote
0answers
13 views

Sonarqube gives node.js error while running sonar-scanner

While running sonar-scanner via Jenkins, we are getting the following error message. Jenkins and Sonarqube have been installed in Window Server 2008 OS. I have also tried installed node.js in the ...
0
votes
1answer
39 views

Why SonarQube exclusions are not applied to additional extensions specified in sonar.javascript.file.suffixes?

In my sonar-project.properties file I have the following settings: ... sonar.sources=src sonar.exclusions=src/**/*.test.js sonar.javascript.file.suffixes=js,jsx However my build is failing with the ...
0
votes
1answer
37 views

Jenkins unable to connect SonarQube using https & SSL

Environment details SonarQube – Version - 6.7.6(LTS) OS – CentOS – 7.6 Protocol- Https Certificate: SSL – Self Signed. Jenkins: 2.164.1 Sonar Scanner Version - 3.3.0.1492 Nginx configured for reverse ...
0
votes
1answer
27 views

How To Configure SonarQube Dev Edition For a C++ RTP Application Project

I am developing a couple or C++ Real-Time Process Application projects for VxWorks 6.9 in Wind River Workbench 3.3. I wanted to integrate SonarQube developer edition to get static analysis results. ...
1
vote
1answer
22 views

How to resolve line of code limit issue in sonarqube?

I am running sonar-scanner msbuild on my vb.net project . Since i didn't provide sonar.language properties during analysis it has analysed the .js files too. And now I am getting the error "Analyses ...
-1
votes
0answers
18 views

Sonarqube JAVA_HOME exist but doesnot point to valid java home folder

Sonar scanner: JAVA_HOME exists but does not point to a valid Java home folder i tried to change the path then also I'm facing the same problem.
0
votes
0answers
33 views

SonarQube not displaying XQuery analysis report in dashboard

I am testing the XQuery code using SonarQube server. I am expecting the analysis report to be displayed in SonarQube dashboard where I would get clear picture of what are the isssues/bugs/duplications ...
0
votes
0answers
5 views

sonarqube7.7 does not support to check codes of python 2.7

Sonar-python-plugin 1.13 support both python 2.x and python3.x. But it just check codes due to python3 rules. How to solve it?
1
vote
0answers
70 views

How to configure SonarQube for Typescript based AngularJS project?

I have set up SonarQube and SonarScanner and managed to scan my project. I can see the metrics on my screen except for code coverage, which is always 0%. What am I missing? #----- Default SonarQube ...
-1
votes
1answer
14 views

Why am i getting Sonarqube 'License Corrupted' error?

I am getting 'License for vbnet is corrupted' error, while running analysis on vb.net project . Can you please help why am i getting this error ?
0
votes
0answers
23 views

How to fetch sonar-scanner-cli from internal nexus repository

I am working on integrating jest and instanbul reports into sonarqube using sonar-scanner. Tests run automatically using dedicated local docker images. I am behind a corporate proxy, and all my ...
0
votes
1answer
36 views

We dont want to merge pull requests with a failed quality gate on TFS

used software: SonarQube 7.6 nuget dotnet-sonarscanner https://www.nuget.org/packages/dotnet-sonarscanner, TFS on prem We are using SonarQube and the dotnet-sonarscanner from nuget which works ...
1
vote
1answer
46 views

SonarQube: obtaining git commit hashes via web API

If I've understood correctly, according to the web API documentation of SonarQube it should be possible to get the commit hash through api/issues/search, however, when I do that and compare that hash ...
0
votes
0answers
37 views

Python | Error during SonarQube Scanner execution | Line 3832 is out of range in the file .py

Below are my sonar.properties file:- sonar.projectKey=code sonar.projectName=PROJECT sonar.projectVersion=0.0.1 sonar.sources=code sonar.python.coverage.reportPath=code/coverage*.xml sonar.python....
0
votes
1answer
48 views

Unable to use sonar-scanner with maven

I am new to SonarQube and SonarQube Scanner. I need to use these software for my existing maven project which I downloaded from svn. I changed the sonar-scanner property file according to my ...
0
votes
0answers
37 views

How to fix 'throw new Error('Basic authentication must be done with the `auth` option');' in Jenkins Build OutPut

I'm trying to apply a jenkins build and I need to resolve the 'Basic Authentication' Error This is a build in Jenkins and it's for download and install Sonarscanner This is what I have inside my ...
0
votes
1answer
83 views

Sonar : Fail to load plugin SonarPLSQL [plsql]

My SonarQube version is sonarqube-7.5 community edition. Sonar Scanner version is sonar-scanner-3.3.0.1492-windows I downloaded sonar-plsql-plugin-3.3.0.2273.jar and placed it in \sonarqube-7.5\...
0
votes
0answers
62 views

Running Sonarqube giving me the following error

I am trying to build our c-sharp solution, and using dotcover for code coverage the following are the output generated. C:\Client\DEV\DEV_3.3.0\TEST> SonarScanner.MSBuild.exe begin /k:"Client-3....
0
votes
0answers
49 views

Sonar Scanner not commenting on pull requests if scanned from different branch

My Organization has a private repo organization/repo. I forked it to my local/repo. I have raised a pull request with buggy code from the local repo to the organization's one. When I'm running sonar ...
0
votes
0answers
59 views

Getting error while running SonarScannerMSBuild on Xamarin projects

1) When I Try to use Rebuild option MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/MSBuild.SonarQube.Runner.exe /t:Rebuild ...
0
votes
1answer
104 views

How to run multiple SonarQube analyses on the same project (workspace) at the same time?

I'm running a Jenkins Pipeline where a build is triggered when a merge request is submitted. The build runs and SonarQube analyses the workspace. Another merge requested is submitted simultaneously ...
0
votes
0answers
50 views

SonarQube sonarrunner.msbuild fails parsing .coverageXML file: Missing root element <TestRun>

I've been trying to make SonarQube SonarRunner.msbuild to work with my .coverageXML file. I have followed the instructions in their side to use CodeCoverage.exe. I have the file generated, I can open ...
0
votes
0answers
28 views

How to configure / start SonarSolidity on SonarQube?

I am trying to use SonarQube for Solidity Language. There is a plugin in here. (https://github.com/sagap/sonar-solidity) I'm trying to integrete Solidity File with SonarSolidity tool by using Maven ...
0
votes
0answers
34 views

SonarQube Comm Edition - Prevent Source Code storing

I want to disable source code storing in SonarQube due to client restrictions, any idea how to achieve it? If not can I delete the code from database table/column directly(not sure about licensing ...
0
votes
1answer
371 views

SonarQube analyses issue Line is out of range for

I am running a local instance of SonarQube and executed a Xamarin.Forms project using default SonarC# plugin analyzed using SonarQube Scanner for MSBuild. Below is the error i am getting: ERROR: ...
0
votes
0answers
34 views

How launch sonar-scanner on a openshift build of an angular project

I'm using Openshift to build my Angular (6) project and deploy it on a dev server. I'm using an image of redhat where i put the code from a gitlab repository, and after that it deploy it. On a ...
0
votes
0answers
205 views

SonarQube: Project is not analyzed yet in SonarQube UI

I am new to SonarQube. I am trying to analyze the Jest unit testing results. Firstly, I have ran the SonarQube server locally and then, ran npm run sonar-scanner. I have navigated to http://localhost:...
2
votes
1answer
919 views

sonar-scanner - ERROR: Failed to parse file with espree parser in module mode

While running sonar-scanner on a node project, I get a Failed to parse file error, which looks like this ERROR: Failed to parse file [file:///home/node-app/somedir/index.js] at line 1: Unexpected ...
2
votes
0answers
369 views

Wrong Major Version number when running Sonar Scanner with Java 11

I'm currently migrating a project from java 8 to java 11, and have been using Sonar scanner, with gradle, to send the code to SonaQube. After migrating to Open JDK 11, I amd getting the following ...
0
votes
1answer
101 views

Sonar Scanner T-SQL unable to parse file

i'm using SonarQube Developer edition 7.3 with SonarScanner 3.2. During parsing my T-SQL code i've some errors like WARN: Unable to parse file 'xxxxx.sql' : Parse error at line 7 column 4: 1: 2: 3: ...
0
votes
1answer
27 views

sonar scanner quality profile assignment using windows batch file

I'm trying to assign quality profile to a project created in Sonar qube using a batch script. It was working perfectly fine when using shell script in Unix curl -u <token>: -X POST "http://...
0
votes
0answers
368 views

Sonar scanner issue in jenkins

I am trying to integrate sonar with Jenkins in my local, when integrating the build is successfully and execution is success, but it is not getting finished success, it show below error and it show ...
0
votes
0answers
167 views

Using sonarscanner to report dotnet code coverage - 'Generic Coverage Report' skipped because one of the required properties is missing

I'm using sonarscanner to get code coverage for a dotnet project. However, the project coverage in SonarQube is reported as 0%. I'm running the following commands to run tests, and capture the ...
0
votes
0answers
36 views

Deleting a project in sonarqube commercial

I am using sonarqube commercial and license I got is for fixed lines of code . I have run analysis on an irrelevant solution. I wanna know if deleting that project from server will restore back that ...
0
votes
0answers
198 views

Error while running MSBuild.SonarQube.Runner against C# project

I’m trying to use MSBuild SonarQube scanner for my C# project. RootFolder has a .sln file, and each project (.csproj) is created in a separate folder inside the root folder. I've the project property ...
0
votes
0answers
135 views

Unable to get any analysis result on Sonarqube server after running analysis using Sonar scanner for msbuild

I am using sonarqube commercial as my solution contains vb code too and im running analysis with sonar scanner for msbuild. I am using scanner as per given here . I can see the project on server url ...
1
vote
0answers
64 views

SonarScanner: Socket Error while uploading report to server

Facing a socket error while the report is being uploaded to Sonarqube Server. Can't read file part for parameter report. Processing of multipart/form-data request failed. Unexpected EOF read on the ...
2
votes
2answers
282 views

SonarQube post processing fails with unknown reason

SonarQube is failing without any meaningful error message for a .NET C# project. I tried running the end command with the -X option but the -X format is unrecognized. SonarScanner.MSBuild.exe end -...
0
votes
0answers
20 views

Why sonar uses git system config and not local/global config?

Failing with below error [workspace] Running shell script + git config --system --list fatal: unable to read config file '/etc/gitconfig': No such file or directory
5
votes
1answer
163 views

Error in SonarQube Scanner Execution [Windows - Linux Master-Slave]

I have SonarQube Server and Jenkins instance running on Windows machine. I have created Jenkins job to generate Code Coverage Report with SonarQube. This job runs on Linux machine Build Code Run ...
0
votes
1answer
378 views

Difference between Sonarqube & SonarScanner

I'm using sonar & Jacoco for my Android application code coverage reporting. I could be successfully deploy it by setup jacoco task job & Sonar job & then following command. ./gradlew ...