Questions tagged [sonar-runner]

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

893 questions
164
votes
15 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
  • 1,781
  • 2
  • 11
  • 11
39
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,081
  • 4
  • 28
  • 52
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,341
  • 8
  • 26
  • 35
31
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,368
  • 6
  • 29
  • 55
25
votes
1 answer

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
  • 261
  • 1
  • 3
  • 4
24
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
  • 925
  • 1
  • 13
  • 23
23
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
  • 349
  • 2
  • 6
  • 21
21
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…
19
votes
6 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
  • 199
  • 1
  • 1
  • 4
18
votes
3 answers

Sonar: You must define the following mandatory properties for unknown not resolved

I'm trying to run SonarQube on a project in java. I configured the sonar properties file and placed it in the project directory. On running the sonar.bat there is an error that asks to define the mandatory parameters. At first I assumed my…
baconSoda
  • 443
  • 2
  • 5
  • 14
17
votes
4 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
  • 346
  • 1
  • 2
  • 8
17
votes
1 answer

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
  • 586
  • 1
  • 5
  • 15
16
votes
4 answers

How to export results as a PDF report?

I am using SonarQube 5.6.3. How can I create a SonarQube analysis details report as a PDF form, an excel report, or an html formatted report? No plugin seems to be available for this. I was unable to generate an html file using below…
Vijay
  • 927
  • 2
  • 9
  • 25
16
votes
6 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
  • 18,741
  • 6
  • 33
  • 51
1
2 3
59 60