Questions tagged [sonarscanner]

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

195 questions
3
votes
0 answers

Sonar Scanner for C Code using Build wrapper ( Multiple C projects into one project )

I am trying to run sonar-scanner for C code using build wrapper output. I am able to get the result for one folder using sonar scanner which created build wrapper output in linux and scanner publishes result in Sonar Dashboard But i am not able to…
3
votes
1 answer

SonarQube Scanner - Long pause between plugin downloads

Maven Sonar scanner is taking a long time to download the plugins ( [INFO] Load/download plugins (done) | time=495872ms) approx. 9 mins every time a build is triggered. Also, the cache is not working as the builds are triggered on the cloud (Azure…
hagarwal
  • 1,153
  • 11
  • 27
3
votes
2 answers

How to use dotnet tools inside a container?

I'm experimenting Visual Studio Code Remote. I want to use SonarScanner for code quality analysis. I've followed the guides and installed the tool on host but when I try to use it from the container, I get: # dotnet sonarscanner -h …
RobertoOSantos
  • 122
  • 3
  • 10
3
votes
2 answers

SonarQube 8.2 Analysis shows 0 code coverage

SonarQube: 8.2.0.32929 sonar-scanner: 3.0.3.778 jacoco: 0.8.4 jdk: 1.8 mvn: 3.6.3 What are you trying to achieve I am trying to achieve code coverage by using sonar-scanner but I am getting code coverage 0 in sonarqube dashboard. What have…
3
votes
1 answer

Missing JaCoCo code coverage report on SonarQube server after analyzing Maven plugin with JaCoCo plugin configuration

Using: SonarQube Community Edition v. 7.9.1 sonar-maven-plugin v. 3.6.0.1398 jacoco-maven-plugin v. 0.8.4 I'm trying to upload the JaCoCo coverage report from my java maven project. I followed the instructions presented in this link and this…
3
votes
2 answers

SonarQube Analysis showing code coverage 0

This is a SpringBoot project based on gradle build tool and I am using AzureDevOps task for SonarQube Analysis. Here are the properties I added in…
Avhi
  • 806
  • 2
  • 15
  • 29
3
votes
0 answers

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 required information about your projects. Possible…
J4N
  • 19,480
  • 39
  • 187
  • 340
3
votes
1 answer

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 error when running the gradle sonarqube…
2
votes
0 answers

Sonarqube server setup and host url

I am trying to integrate sonarqube to my CI/CD pipeline. I have successfully created and analysed the project by running my ci/cd pipeline locally. But now I want to be able to access it remotely for anyone to be able to run the sonarqube. This is…
srisindhu saride
  • 391
  • 6
  • 25
2
votes
0 answers

Code coverage and number of unit test are not showing in sonarQube

I am using sonarQube to analyze my code that in .net6. I've installed sonarScanner and run these 3 commands: dotnet sonarscanner begin /k:"" /d:sonar.login="" …
2
votes
0 answers

SonarScanner CLI error: check sonar.projectKey and sonar.organization properties, SONAR_TOKEN variable

When using SonarScanner, following the suggested manual recipe for classic .NET and MSBuild - so all required properties and variable are passed to the CLI tool - I find the following error at the bottom lines: ERROR: Project not found. Please check…
2
votes
1 answer

Calling the SonarScanner CLI., Could not find 'java' executable in JAVA_HOME or PATH. for DotNet

I am trying to run sonarqube from docker on linux agent. install dotnet scanner dotnet tool install --global dotnet-sonarscanner --version 5.6.0 dotnet sonarscanner begin and dotnet build commands are running fine. but for dotnet sonarscanner end…
2
votes
1 answer

ERROR: Malformed input or input contains unmappable characters

I am running the sonar scanner for my project with (-Dsonar.sourceEncoding=UTF-8) but I am getting the following error. INFO: SonarQube Scanner 3.2.0.1227 INFO: SonarQube server 8.9.7 INFO: Default locale: "en_US", source code encoding:…
Víctor DC
  • 51
  • 6
2
votes
1 answer

Why are Java binaries necessary in Sonar?

I'm trying to check if there are any difference between an analysis with only source code and with source code and the .jar generated after compiling. If I delete the '-Dsonar.java.binaries' property I get this error: ERROR: Error during SonarQube…
Felipe
  • 174
  • 5
  • 16
2
votes
2 answers

How to send .coverage file to SonarCloud

i'm new to sonar cloud and my company implmented it in AzureDevOps Pipeline. The problem we are facing is that, to know our code coverage we have to create a pull request and build the solution in devops for the code to get analysed. So i'm trying…
Miguel Vale
  • 59
  • 11
1
2
3
12 13