Questions tagged [sonarqube-scan]

SonarQube Scanners run the analyzers on code. Use this tag for questions related to any of the scanners: SonarQube Scanner for CLI, Maven, Gradle, Jenkins, etc.

1464 questions
5
votes
1 answer

Sonar failing to get pylint results

I am trying to use pylint with the python plugin in sonar and a jenkins job. However, even though my pylint results are created and available in the workspace, sonar is not picking it up. Execute shell step: generate pylint report file cd…
beardedeagle
  • 762
  • 1
  • 11
  • 24
5
votes
1 answer

Sonarqube scanner cannot resolve relative file path in PHPUnit coverage XML file

When executing sonar-scanner with the example project available at: https://github.com/SonarSource/sonar-examples/tree/b0ebd45081e58c3cb7c660287d5ed7fb9c64bb17/projects/languages/php/php-sonar-runner-unit-tests I get the following warning, and the…
Adam Maschek
  • 53
  • 1
  • 4
5
votes
1 answer

Unable to register extension org.sonar.plugins.cobertura.CoberturaSensor from plugin 'cobertura'

Since I updated my sonarqube server to 6.1 I'm getting this error in my gradle project. I'm using sonar plugin latest version (2.2) classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.2") anyone knows how to solve it? Thanks!
Joan
  • 108
  • 6
5
votes
1 answer

The SonarQube Post-build Action is deprecated

Using Jenkins 1.642.2 for code analysis with SonarQube 5.6.1 for all my maven projects. When I use maven goal sonar:sonar they take more time to analyse files (more than 7 seconds by file) : [INFO] Sensor SCM Sensor [INFO] SCM provider for this…
Inforedaster
  • 1,260
  • 1
  • 23
  • 39
5
votes
3 answers

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable

I am trying to run the SonarQube Scanner within Jenkins as a post-build step. However, I keep getting the error message below: ------------------------------------------------------------------------ SONAR ANALYSIS…
oyvindym
  • 352
  • 1
  • 2
  • 15
5
votes
2 answers

which versions of gradle, sonarqube and jacoco plugins are compatible

I am setting up a new multi-module gradle project to be built in jenkins and trying to get sonarqube analysing it but I have struck several incompatibility issues which I haven't been able to resolve. I am looking at using the sonarqube plugin…
stephen newman
  • 533
  • 4
  • 17
4
votes
2 answers

You're not authorized to run analysis. Please contact the project administrator Sonarqube local

I have very basic setup of sonarqube. It is in initial phase only and it's kind of strange that I'm not able to access sonarqube report at localhost:9090 (default is of course 9000 but I just changed it to 9090). I'm able to login to sonarqube at…
micronyks
  • 54,797
  • 15
  • 112
  • 146
4
votes
0 answers

sonar.coverage.exclusions doesn't take effect when running Sonar scanner in my case

I am developing a node.js project (Nestjs) with TypeScript. I have a SonarQube container running on my laptop (In other words, my laptop is the docker host). I have downloaded SonarScanner and configured…
user842225
  • 5,445
  • 15
  • 69
  • 119
4
votes
0 answers

Unit test count is not shown on the sonarqube dashboard

I am using nodejs Project repository and the test cases are written in the Jasmine framework. On sonarqube dashboard, I cant see the unit test count block. Sonar-template-configurations was written as…
Shahaji
  • 175
  • 1
  • 4
  • 14
4
votes
1 answer

How to get SonarQube Issues Report via API

Is there a way to get an issues report by querying the SonarQube web API? With previous versions of SonarQube, I was able to generate an HTML report after each build but this feature looks like it's been deprecated in newer installments. At the…
Hammed
  • 1,457
  • 1
  • 24
  • 37
4
votes
2 answers

Coverage always at 0% on sonarqube even i added test unit

I created a test unit for a class and it passed well on my local, on sonarqube it is shown as 0% for Coverage, I found post advice to add coverlet.msbuild I added but still no news:
Sacamoto
  • 107
  • 1
  • 8
4
votes
1 answer

HTTP request redirections vulnerability does not detect with SonarLint plugin and SonarQube server

Once we performed the static code analysis with sonarCube and SonarLint eclipse plugin,non of them could detect a vulnerability in below code segment . But this has defined as a vulnarability under the rules of sonarsource web site. protected void…
Lahiru Wijesekara
  • 623
  • 1
  • 10
  • 22
4
votes
0 answers

Sonar Scanner can't find local app data folder

I'm trying to get Sonar Scanner to analyze a project as part of a dockerfile using the mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1809 image, but it's throwing the following exception when attempting to run dotnet-sonarscanner begin Unhandled…
Jerreck
  • 2,930
  • 3
  • 24
  • 42
4
votes
1 answer

Gradle Build - Execution failed for task ':sonarqube' can't be indexed twice

I am getting an error "File can't be indexed twice" in gradle build for sonar. Do i have to add any inclusion/exclusion property for sonar? Any help greatly appreciated. If I take out "src/main/java" in test under sourceSets, I am getting…
skumar
  • 985
  • 4
  • 14
  • 37
4
votes
1 answer

SonarQube does not indexes/find JAVA files

Currently we are using an Sonar On-Premise installation. (7.9.3.X) We send our Sonar Analysis via the maven goal "mvn sonar:sonar" to our Sonar Server. We have the Server URL and the authentication configured in our .m2/settings.xml. If I am…
sdsys22
  • 41
  • 3