Default utility tool to launch a Sonar analysis without any dependency on third party tool like Maven, Ant, ...
Questions tagged [sonar-runner]
893 questions
14
votes
3 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…
![](../../users/profiles/1017111.webp)
WowBow
- 5,709
- 15
- 55
- 96
14
votes
4 answers
Error in jenkins during sonar analysis caused by svn blame
When i run the jenkins task i get the following error
17:12:49.738 INFO - Sensor SCM Sensor...
17:12:49.847 INFO - SCM provider for this project is: svn
17:12:49.847 INFO - Retrieve SCM blame information...
17:12:49.863 INFO - 843 files to be…
![](../../users/profiles/3409405.webp)
Tejus Prasad
- 5,871
- 6
- 41
- 70
13
votes
2 answers
launch a sonar analysis for the code of a pullRequest with Jenkinsfile and maven
Currently on my project, each pull-Request on the organization-repository are build automatically by Jenkins, as specified in a jenkinsfile.
When the build end, a message in send by Jenkins to github with the status of the build of this project.
I…
![](../../users/profiles/2560685.webp)
sab
- 2,521
- 3
- 24
- 46
13
votes
1 answer
Sonarqube 4.5.4 : MySQL deadlock
I am using sonarqube 4.5.4 with mysql database.
I got this exception when running analysis on my projects :
INFO o.d.m.sonar.runner.RunSonarVisitor - ### Error updating database. Cause:…
![](../../users/profiles/4726477.webp)
Master Mind
- 2,746
- 3
- 26
- 56
13
votes
1 answer
importing javascript xml junit tests to SONAR using jstestdriver fails
What I am doing?
I am currently working on setting up Continuous integration / delivery pipeline for front end applications. We are planning to use SonarQube as code quality tool and want to import junit test results/code coverage in SONAR for…
![](../../users/profiles/4604607.webp)
Sunil
- 191
- 2
- 6
13
votes
1 answer
How to login into SonarQube in my local box
I installed the SonarQube 3.7 in my localbox for Maven Projects (Maven 3), I can able to run the sonar and see the metrics. But i could not able to Log In as administrator in localhost:9000, what are the default login credentials for SonarQube after…
![](../../users/profiles/2723039.webp)
user2723039
- 191
- 1
- 5
- 14
12
votes
3 answers
Running SonarQube analysis scan - SonarSource build-wrapper
I'm new to running SonarQube scans and I get this error message in the log in Jenkins:
16:17:39 16:17:36.926 ERROR - The only way to get an accurate analysis of your C/C++/Objective-C project is by using the SonarSource build-wrapper. If for any…
![](../../users/profiles/7194340.webp)
DoruF
- 143
- 1
- 1
- 9
12
votes
2 answers
sonarqube typescript plugin: "You must install a plugin that supports the language"
I'm trying to setup SonarQube to analyse my TypeScript project using this plugin: https://github.com/Pablissimo/SonarTsPlugin
However, I'm encountering an error like:
> C:\sonarqube\sonar-runner-2.4\bin\sonar-runner.bat
...
INFO:…
![](../../users/profiles/1506521.webp)
laffoyb
- 1,390
- 2
- 16
- 33
12
votes
7 answers
TeamCity dotCover report path for Sonar
I'm trying to integrate the sonar analysis into by TeamCity build process. I have a NUnit build step which runs my unit tests and then runs dotCover for the coverage.
My next step is the sonar-runner. The configuration that currently exists is;…
![](../../users/profiles/755718.webp)
Dipesh
- 1,203
- 1
- 11
- 12
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…
![](../../users/profiles/3926715.webp)
nekoMiaChan
- 161
- 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…
![](../../users/profiles/2321081.webp)
mdoc-2011
- 1,945
- 3
- 17
- 36
9
votes
2 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…
![](../../users/profiles/5315813.webp)
shha
- 161
- 1
- 2
- 6
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.
![](../../users/profiles/5341159.webp)
Tameshwari Bisen
- 101
- 1
- 3
9
votes
2 answers
Unsupported major.minor version Exception for sonar-scanner
I am trying to analyze my source code using SonarQube. I am trying to use sonar-scanner as my tool to run analysis from command line. I followed the guidelines presented in this documentation article:…
![](../../users/profiles/454477.webp)
Amrish
- 619
- 1
- 6
- 18
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…
![](../../users/profiles/391658.webp)
Christian Rygg
- 651
- 11
- 26