Default utility tool to launch a Sonar analysis without any dependency on third party tool like Maven, Ant, ...
Questions tagged [sonar-runner]
905 questions
10
votes
1 answer
How can I integrate Jacoco reports with SonarQube without using maven?
I used Jacoco eclipse plugin to measure unit test coverage and I was able to export a report using it. I want to integrate that report with sonar so I gave the path to it in the project properties file.
My properties file looks like this
# Required…

nekoMiaChan
- 181
- 2
- 12
10
votes
3 answers
Can I dynamically calculate technical debt?
I have a large number of individual, unrelated Java programs in a "Programs" folder, and I'd really like to be able to calculate a technical debt score automatically for each individual program. I understand that SonarQube can allow you to do this…

mdoc-2011
- 2,747
- 4
- 21
- 43
10
votes
2 answers
Is it Possible to Run SonarQube Analysis Through Pre-commit Hooks
I have read several posts on stackoverflow that stated, that the usage of sonar as a pre-commit analysis tool is inefficient, due to the fact that it has to run compilation of the whole project, run its analysis etc.
However, the manual for…

jiallombardo
- 121
- 1
- 4
9
votes
1 answer
Sonarqube vs sonarscanner
I have a very big confusion that what is the use of sonar scanner when we have sonarqube server? when I analyzed a project with soarqube server it made an analysis and worked well. I am still in confusion why we need scanners too.
Does it required…
user7486728
9
votes
1 answer
Not able to install sonar runner in Mac (Sierra)
I am trying to install sonar runner using below command.
brew install sonar-runner
Its giving me the error.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Please suggest.

Tameshwari Bisen
- 101
- 1
- 3
9
votes
2 answers
SonarQube: Can't create measure for line X for file with file with
We recently upgraded our SonarQube server to the latest version (5.3) as well as upgrading all the plugins. The server only monitors a single build at the moment, of a C# project built by Visual Studio Team Services (was Visual Studio Online).
At…

Christian Rygg
- 671
- 12
- 26
9
votes
3 answers
SonarQube : " Project configuration file: NONE "
I've configured everything to do a Sonar analysis on a Maven project. Everything is fine until I run sonar-runner :
Max$ sonar-runner
INFO: Scanner configuration file: /Users/Max/Documents/sonar-scanner-2.5/conf/sonar-runner.properties
…

user3568978
- 111
- 1
- 1
- 7
9
votes
1 answer
How to analyse sh files in Sonar?
I need to analyse the shell scripts using the Sonar server.
The files that I have are of extension sh and would need to be analysed. But I don't see any plugin for the sh from the Sonar plugins.

Ganapathy
- 237
- 2
- 8
9
votes
3 answers
How to specify wildcards in sonar-project.properties
I am trying to use SonarQube to scan the UI modules I have. The UI modules are lot in number. They have a common structure. Each module has its own JS files.
I need to specify the sonar.sources value to match all JS files in my project. Is it…

IamSan
- 165
- 1
- 1
- 6
9
votes
1 answer
SonarQube unit tests w/o binaries
After endless googling and reading tons of documentations, I am completely finsihed.
I want to import already created unit tests reports like .xml and .exec-files (JUnit and Jacoco) into SonarQube. The Problem is
Sensor…

TeamHundM
- 101
- 1
- 3
9
votes
3 answers
Sonar Analysis using Jenkins can't find executable
I'm trying to trigger a sonar analysis of an android application through Jenkins and the Sonar Runner plugin. I've added a "Invoke Standalone Sonar Analysis" build step to my job that builds the code using Ant. When it gets to the Sonar Analysis…

Tyler Plude
- 235
- 4
- 9
8
votes
0 answers
Sonarqube jest coverage report fails on expected XML format
I am using jest-sonar-reporter for the coverage as below:
package.json
{
"name": "app",
"version": "1.0.0",
"description": "The task runner packages for Gulp",
"main": "gulpfile.js",
"scripts": {
...
"test": "jest…

helloworld9
- 173
- 2
- 2
- 8
8
votes
1 answer
Sonar scanner with Maven and JDK 11
I can make Sonar scanner work with OpenJDK 8 but not with OpenJDK 11.
The Maven command used is:
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json -P…

Réda Housni Alaoui
- 1,244
- 2
- 15
- 22
8
votes
2 answers
Analyze pull requests using SonarCloud
I want to use SonarQube to analyze any pull request (PR) made to my project.
Few quick points:
My project is hosted on Github, it is public, is written in C#, and I'm using Appveyor for continues integration (CI);
I am using SonarCloud (a public…

Dr. Strangelove
- 2,725
- 3
- 34
- 61
8
votes
2 answers
Sonarqube ignore test execution data
I'm trying to import generic test execution with sonar.testExecutionReportPaths.
I'm using the xml file format provided in the doc.
I use full path to the file in the path attribute. And files exist.
I don't understand why my files are ignored. Any…

Greg
- 360
- 3
- 14