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
7
votes
1 answer

SONAR static code analysis for current changes only

Using Sonar how to do static code analysis only for current changes which i have done. for example my project 100 class/file and i made change to a class/file, now sonar has to run static code analysis only for that particular not for the entire…
Prem M
  • 95
  • 1
  • 7
7
votes
2 answers

tmatesoft.svn.core.SVNAuthenticationException: svn: E170001

We are working n a legacy project (maven) to setup devop. Starter with jenkins. Jenkins build is now without issues. But, while integrating sonarqube with jenkins, we are getting the following error: ERROR: Error during SonarQube Scanner…
kallada
  • 1,829
  • 4
  • 33
  • 64
6
votes
2 answers

Sonarqube gradle plugin - excluding test sources breaks the unit test count in report

I'm using Gradle sonarqube plugin and I need to exclude all test sources from the sonar analysis (main goal is to filter out unit test classes from the issues/code smells report) To do so, I have used the dedicated sonar.test.exclusions property as…
M.Ricciuti
  • 11,070
  • 2
  • 34
  • 54
6
votes
1 answer

How to force Jacoco to use a specific version in Gradle

Based on the release notes in version 0.8.3 the not-null assertion operator is filtered out, I'm using Jacoco version 0.8.5 like this: jacoco { toolVersion = "0.8.5" } But it's telling me that Not covered by tests (8 conditions) I'm using…
Mohamed Hamdan
  • 147
  • 2
  • 16
6
votes
1 answer

sonar-maven-plugin: How to use project-relative paths in inclusion patterns?

I have quite a large multi-module multi-language maven project (~100 modules in total), which I want to analyze using SonarQube and since the scanner doesn't automatically discover all files in all languages (i.e. not for Groovy and Kotlin), I have…
6
votes
1 answer

Sonarcube using rspec not showing count of Unit Tests

I'm using Sonarqube with RoR and RSpec as testing tools, successfully get coverage but not the count of Unit Tests as shown on the image below: Please help Configuration: spec_helper.rb if Rails.env.development? || Rails.env.test? require…
Ardi Nusawan
  • 427
  • 6
  • 12
6
votes
2 answers

Unable to execute SonarQube: Fail to get bootstrap index from server: timeout: Read timed out

I'm trying to integrate my maven project with SonarQube but when I try to run mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -X I'm getting this error [DEBUG] 13:09:55.647 Create: /Users/gab/.sonar/cache/_tmp [DEBUG] 13:09:55.650 Extract…
gversoza
  • 161
  • 1
  • 6
6
votes
0 answers

Sonarqube scanner error: No analysable projects were found. SonarQube analysis will not be performed

I'm trying to analyze a VS2017 solution with Sonarqube. I've installed the server on a VM with Windows 2016. I've created a batch file in the root of the solution with the command suggested by the Sonarqube server after creating the…
Edika
  • 303
  • 5
  • 16
6
votes
2 answers

How can I create my own C# custom rules for SonarQube?

I've been doing some research on it. What I found is a list of quite nice samples but for other languages here. I also looked at sonar-dotnet. But it doesn't look similar to the other implementations. Finally, and to be honest probably my last…
6
votes
0 answers

Can Sonar Scanner be run on multiple cores?

SonarQube 6.7.1. Sonar Scanner 3.0.3.778. Sonar Scanner plugin 2.6.1 for jenkins. Postgres 9.6.6 database. Everything is running on one Solaris 11 Unix box. Project language is OpenEdge ABL. I found no mention of running the scanner on multiple…
6
votes
6 answers

Sonarqube : The 'report' parameter is missing

I am using MSBuild. I have Java 8 installed. I am running the following commands: SonarQube.Scanner.MSBuild.exe begin /k:"ABC" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="8b839xxxxxxxxxxxxxxxxxxxxxxx6b00125bf92" …
Peter PitLock
  • 1,823
  • 7
  • 34
  • 71
6
votes
3 answers

Sonarqube quality gate stuck on pending when inside jenkins pipeline node

We're trying to add a Sonarqube scan as part of our Jenkins pipeline script. We have a multi-module maven project, and we're using the Maven Sonarqube plugin to run the aggregated scan. To initiate the scan we followed the instructions in…
Eddie
  • 73
  • 1
  • 4
6
votes
2 answers

Sonarqube C# MsBuild Access denied

I have a Sonarqube (6.7.1) server with SonarC# (6.7.1) which is build by Bitnami Google Cloud Platform. and I followed the tutorial: https://docs.sonarqube.org/display/SCAN/Scanning+on+Linux+or+macOS created a new and empty project…
WeiHan Hung
  • 155
  • 1
  • 7
6
votes
1 answer

SonarQube 6.2 upgrade to 6.4 Missing projects and users

On Debian Jessie I had an installed version of SonarQube 6.2 using Postgresql (latest on Jessie ) Java 8 installed I went through the upgrade process (to v. 6.4)Here When it came back online all the projects were missing. I can get to them by…
6
votes
1 answer

SonarQube not apply analyzing to the root project

I need to make analyzing only root project, and ignore nested sub module, but it d So I have this hierarchy: ProjectMain -src -subProjectAngular settings.gradle My configuration settings.gradle rootProject.name="ProjectMain" include…
Yura Heto
  • 63
  • 4