Questions tagged [sonarscanner]

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

0
votes
0answers
12 views

Unable to execute sonarqube scanner with jenkins

I am unable to execute the sonarqube scanner with Jenkins pipeline script. sonarqube scanner version : 3.3.0 Please suggest. stage('SonarQube analysis 3') { steps { withSonarQubeEnv('...
0
votes
0answers
15 views

Travis CI SonarCloud - How to choose what quality profile to be enabled?

From the Job log it looks like Travis enable all Sonar way that is available ... INFO: Quality profile for css: Sonar way INFO: Quality profile for java: Sonar way INFO: Quality profile for js: Sonar ...
0
votes
0answers
34 views

The problems scanned by sonar scanner are much less than those scanned by soanr: soanr

The problems scanned by sonar scanner are much less than those scanned by soanr: soanr I use sonar scanner and soanr: sonar commands through the same jenkins, but their results are different. This ...
0
votes
0answers
41 views

How to run Sonar Scanner on a Visual Studio 2019 solution?

We started to use VS2019 and all the new things that comes with. We noticed that the build manager doesn't work anymore: The SonarQube MSBuild integration failed: SonarQube was unable to collect the ...
1
vote
1answer
51 views

How to correctly get TFS changeset number into Project Version field of SonarScanner on Jenkins?

We are running Jenkins as our build server and on-prem TFS as our source control. We are using SonarScanner for MSBuild step before the build, and one of the fields which can be populated is "project ...
0
votes
1answer
31 views

how to include sonar scanner in a docker image

I have a dotnet image that is used as an agent for the Jenkins pipeline. Now I want to include sonar scanner in the image so that I can run an analysis and see if the coverage is good. If the coverage ...
-1
votes
1answer
44 views

Configuring Sonarqube analysis in CI build in VSTS

I am trying to run sonarqube analysis on code commit itself . I have added 1) prepare analysis configuration and 2) run code analysis, tasks in CI build. But I am getting an error : " No agent found ...
0
votes
0answers
36 views

How to start a sonar-scanner docker image from BitBucket Pipeline?

I have to run from bitbucket the sonar-scanner that is already configured. Thing is that I am new to all of these: BitBucket, sonar-scanner, docker and I need to integrate them in a way that I can ...
2
votes
1answer
128 views

Launching Sonar Scanner from a gitlab docker runner

I have a CI workflow that integrates a linting job and then a code quality job. My Linting job is a docker runner launching my eslint script from the application code. Then my code quality job is ...
0
votes
0answers
47 views

How to resolve 'Fail to get bootstrap index from server' error occuring in sonarqube analysis?

I am getting the below error while running the sonarqube analysis using scanner for msbuild. ERROR: SonarQube server [https://sonarqube.s###.com/commercial] can not be reached ERROR: Error during ...
0
votes
1answer
20 views

Automating the sonarqube analysis trigger

I am using sonarqube 6.7 , developer’s version and I run analysis through sonar scanner msbuild from my local machine . Is there any way to : 1) Trigger this analysis automatically on code check-in, ...
0
votes
0answers
31 views

Error during SonarQube Scanner execution java.lang.StackOverflowError

I'm using sonar 7.7 and at the time of scanning to a php project I get the error below. ERROR: Error during SonarQube Scanner execution java.lang.StackOverflowError at org.sonar.php.checks....
0
votes
0answers
48 views

How to resolve 'Fail to get bootstrap index from server' error in sonarqube analysis

I am getting the error “SonarQube server [https://sonarqube.s**.com/commercial] can not be reached”. I am running the analysis using scanner for MSbuild 4.3.1 . This error occurs while executing the ...
1
vote
0answers
48 views

How to exclude from sonar coverage by project and file?

I'm running sonar on my NetCore solution and trying to exclude the following - .Service, .UnitTests and .Contract projects from code coverage - .UnitTests projects from code analysis Seems that ...
1
vote
0answers
242 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
48 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
204 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
45 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
47 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 ...
0
votes
0answers
40 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
9 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
357 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
17 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
40 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
51 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
55 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
48 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
55 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
52 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
139 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
93 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
63 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
86 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
168 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
77 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
34 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
37 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
499 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
40 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
259 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
1k 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
467 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
129 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
30 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
457 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 ...
1
vote
0answers
184 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
46 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
234 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 ...
1
vote
0answers
164 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
83 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 ...