sonar-runner

Why does SonarQube not show results, although the analysis succeeded?

五迷三道 提交于 2019-12-02 03:44:01
I use sonar-runner to analyse my project and the analysis succeeds: 14:30:34.813 INFO - Analysis reports sent to server in 160ms 14:30:34.813 INFO - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/AMLServerProj 14:30:34.813 INFO - Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report. 14:30:34.814 DEBUG - Post-jobs : 14:30:34.815 DEBUG - Release semaphore on project : org.sonar.api.resources.Project@3335ebfc[id=1,key=AMLServerProj,qualifier=TRK], with key batch-AMLServerProj INFO: -----------------------

Getting error while running sonarqube scanner

ⅰ亾dé卋堺 提交于 2019-12-02 01:29:12
Getting the following error in SonarQube while running the build from TeamCity Caused by: Start pointer [line=239, lineOffset=1] should be before end pointer [line=239, lineOffset=1] Updated the C# plugin, installed VB.net plugin and added the Scanner for MSBUILD latest version sonar-scanner-msbuild-2.2.0.24. Still getting the error. Unfortunately we introduced a bug in the latest release. Here's the corresponding ticket: https://jira.sonarsource.com/browse/SONARCS-629 . We're working on the fix. As a workaround for the time being you can disable the rule that causes the issue. Can you confirm

How can we ignore some SonarQube rules in Java?

落爺英雄遲暮 提交于 2019-12-01 17:47:53
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 configure the priority and time suggested by SonarQube) for Document this public class. and Complete the task associated to this TODO comment. I couldn’t find a way to configure this rules to be ignored. We want this kind of rules to be ignored for the whole project not specific classes. Configuring this values would help us to have a better time

How can we ignore some SonarQube rules in Java?

白昼怎懂夜的黑 提交于 2019-12-01 17:38:36
问题 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 configure the priority and time suggested by SonarQube) for Document this public class. and Complete the task associated to this TODO comment. I couldn’t find a way to configure this rules to be ignored. We want this kind of rules to be ignored for the

Sonar and TFS 2013 : No ProjectInfo.xml files were found

萝らか妹 提交于 2019-12-01 13:30:23
When I run TFS 2013 with sonar I get the following error: No ProjectInfo.xml files were found. Check that the analysis targets are referenced by the MSBuild projects being built. Message: TF270015: 'SonarQube.MSBuild.Runner.exe' returned an unexpected exit code. Expected '0'; actual '1'. I use : sonarqube-5.1.zip sonar-csharp-plugin-4.0.jar SonarQube.MSBuild.Runner-0.9.zip sonar-runner-dist-2.4.zip I've followed instructions found in "SonarQube Installation Guide for Existing TFS Environment.pdf". Any help ? Thank you. Log : SonarQube Analysis Summary Analysis failed for SonarQube project

SonarRunner with gradle: Fail to download libraries from server

北城余情 提交于 2019-12-01 10:12:08
I have updated Sonar to the 4.5.1 LTS version, and now in my gradle task i have got the following error and can't fix it: Fail to download libraries from server build.gradle with sonar runner sonarRunner { sonarProperties { property "sonar.host.url", "http://sonar:9000" property "sonar.login", "" property "sonar.password", "" property "sonar.jdbc.url", "jdbc:mysql://sonar" property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver" property "sonar.jdbc.username", "sonar" property "sonar.jdbc.password", "sonar" property "sonar.profile", "sonar" property "sonar.projectName", "sonar" property

Sonar Adding a new project

半腔热情 提交于 2019-12-01 08:39:49
I am trying to add a new project into sonar . When running sonar runner, I'm getting the following error, Can anyone please help me on this. sonar-runner Runner configuration file: /opt/lampp/htdocs/typo3/sonar-runner-1/conf/sonar- runner.properties Project configuration file: /opt/lampp/htdocs/typo3/sonar-project.properties Runner version: 2.0 Java version: 1.6.0_24, vendor: Sun Microsystems Inc. OS name: "Linux", version: "2.6.38-8-generic", arch: "i386" Default locale: "en_IN", source code encoding: "UTF-8" Server: http://localhost:9000 Work directory: /opt/lampp/htdocs/typo3/.sonar Total

No sonar-runner option in jenkins?

筅森魡賤 提交于 2019-12-01 07:15:28
I'm looking to install sonarQube on our jenkins server. The documentation i can find tells me to configure sonar-runner in Jenkins --> manage Jenkins --> Configure system however there is no 'sonar runner' option there. There is a 'sonar' option where i configured my sonar server, and the sonar plugin is installed and up to date. How do i get the sonar-runner configuration to show up? (We want the standalone sonar job not the maven on as this is a project without maven.) Ok. So, if I understand well: Going into Manage Jenkins' -> 'Manage Plugin' -> tab 'Installed' in the Plugin manager, you

Sonar Adding a new project

断了今生、忘了曾经 提交于 2019-12-01 05:38:32
问题 I am trying to add a new project into sonar . When running sonar runner, I'm getting the following error, Can anyone please help me on this. sonar-runner Runner configuration file: /opt/lampp/htdocs/typo3/sonar-runner-1/conf/sonar- runner.properties Project configuration file: /opt/lampp/htdocs/typo3/sonar-project.properties Runner version: 2.0 Java version: 1.6.0_24, vendor: Sun Microsystems Inc. OS name: "Linux", version: "2.6.38-8-generic", arch: "i386" Default locale: "en_IN", source code

MSBuild SonarQube runner in command line

你说的曾经没有我的故事 提交于 2019-12-01 01:16:07
I have a problem analyzing a project using MSBuild SonarQube runner. SonarQube database and server are up and running, i have tried to analyze an example project and it all went well. But when i try to analyze my project something goes wrong. The analysis completes with no errors but no analysis data is saved to database, no issues, no lines of code count, nothing. Anyone has any idea of what could be wrong? EDIT: sonar-project.properties: sonar.projectKey=shrooms sonar.projectName=Shrooms sonar.projectVersion=1.0 sonar.sources=. sonar.properties: sonar.jdbc.username=user sonar.jdbc.password