Questions tagged [sonar-runner]

Default utility tool to launch a Sonar analysis without any dependency on third party tool like Maven, Ant, ...

905 questions
230
votes
16 answers

SonarQube Exclude a directory

I am trying to exclude a directory from being analyzed by Sonar. I have the following properties defined in my sonar-project.properties file: sonar.sources=src/java sonar.exclusions=src/java/test/****/*.java The directory structure I have…
user1982350
  • 2,441
  • 2
  • 14
  • 11
50
votes
2 answers

How do I use, or set up sonar-project.properties file?

I have very little exposure to SonarQube but have been asked to make a document explaining how to set up / use "sonar-project.properties file". Any information or input would be greatly appreciated.
Charles.savin
  • 511
  • 1
  • 4
  • 4
42
votes
3 answers

Does Sonar support multiple language in same project?

I am setting up Sonar for one of my projects which is a mix of Groovy and Java. I am able to configure the project separately for either of these languages but not together. Is there any way to do this? I tried this sonar.language = java,grvy but…
rajesh
  • 3,247
  • 5
  • 31
  • 56
38
votes
1 answer

SonarQube Runner vs Scanner

What is the difference btw Sonar Runner and Sonar Scanner?. And which version of "Sonarqube" and Sonar runner is required for JDK7?
devinabagre
  • 381
  • 1
  • 3
  • 3
38
votes
1 answer

Do I need sonar and sonar runner for Jenkins?

I want to set up Sonar with Jenkins. But I'm not sure if the Sonar site describes two different ways to do this or if there are two necessary steps: As far as I understood it, it's two different ways. If this is the case, what is the difference and…
user1338413
  • 2,471
  • 8
  • 29
  • 36
33
votes
2 answers

What does the "leak period" mean in sonarQube?

I'm new in SonarQube I started reading documentation but a lot of time a found "The leak period" but I didn't found anything about it can someone explain me what it means.
e2rabi
  • 4,728
  • 9
  • 42
  • 69
29
votes
13 answers

How to solve Sonar error: Unable to load component class org.sonar.scanner.scan.ProjectLock

I have some issues while running Sonar on my netbeans' project. It's not working and i have the following error : C:\Users\remy.fischer\Desktop\NetBeansProjects\NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin>sonar-scanner…
Rémy Fischer
  • 299
  • 1
  • 3
  • 4
29
votes
3 answers

Properties file exclude multiple paths

I have a sonar-project.properties file, which specifies how sonar-runner inspects the the folder structure, which files to inspect, which files to ignore etc. I cannot successfully determine however how to exclude multiple paths successfully. Here…
Jon Duffy
  • 706
  • 1
  • 7
  • 15
28
votes
4 answers

How to resolve "HttpException: Error 413" (SonarQube)

I've recently installed the latest version of Jenkins, SonarQube 6.0 (running on a separate server) and when the Jenkins job attempts to upload sonar scanner results to the SonarQube server, I get the following error: 'ERROR: Error during Sonar…
Mister Tommy Cat
  • 325
  • 1
  • 3
  • 8
28
votes
2 answers

Directory excluding in sonar-project.properties file doesn't work (for me)

I have excluded the directory in my project properties but sonar doesn't exclude it. Can anyone help me to find problem? sonar.sources=./ sonar.exclusions=./utility/Excel/**
Fatemeh Rostami
  • 1,047
  • 1
  • 15
  • 27
26
votes
8 answers

Sonar - OutOfMemoryError: Java heap space

I am deploying a large Java project on Sonar using "Findbugs" as profile and getting the error below: Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space What i have tried to resolve this: Replaced…
shekhar verma
  • 489
  • 2
  • 9
  • 22
24
votes
7 answers

Exclude packages from Jacoco report using Sonarrunner and Gradle

Is there a way to exclude packages from SonarQube(instrumented by gradle + sonar-runner) coverage reports(generated by jacoco) without excluding them completely from the project ? Below is what i tried so far: Version information SonarQube…
fyr
  • 20,227
  • 7
  • 37
  • 53
23
votes
6 answers

How to correctly configure the property "sonar.java.binaries"?

We are using SonarQube 5.1.2 using Ant runner 2.2 and Java pluging 3.12 for the analysis. I can succesfully analyse my project. I just keep getting this error: Java bytecode has not been made available to the analyzer. The…
Mark
  • 414
  • 1
  • 3
  • 9
21
votes
4 answers

How can we ignore some SonarQube rules in Java?

We recently started using SonarQube. We have found some rules that are suggested by SonarQube but we want to ignore them or give them a low priority and even configure the time suggested by SonarQube. For e.g We want to avoid the rule (and/or…
WowBow
  • 7,137
  • 17
  • 65
  • 103
19
votes
4 answers

Sonarqube authorization - how to authorize with sonar-maven-plugin when sonar.forceAuthentication is enabled

I've got sonarqube 6.5 with default configs. When sonar.forceAuthentication flag is set to false, I can create and analyse project through command given below. mvn sonar:sonar -Dsonar.host.url=https://mySonarHost/sonar -Dsonar.login=mySonarUserKey…
shha
  • 281
  • 2
  • 3
  • 7
1
2 3
60 61