sonarqube

Elasticsearch bulk index error on Sonar startup

若如初见. 提交于 2019-12-22 06:04:40
问题 Would someone be able to assist on the error below? It is occurring on the start up of SonarQube 5.6 running on Java 8u71 and an Oracle database. This instance was just update from 5.2. I had the Puppet addon and uninstalled it as an attempt to solve the error. I confirm Elasticsearch is on port 9001 after startup. 2016.06.13 00:16:04 ERROR web[o.s.s.es.BulkIndexer] Fail to execute bulk index request: Bulk[671 index request(s) on index rules and type activeRule] org.elasticsearch.transport

Elasticsearch bulk index error on Sonar startup

浪子不回头ぞ 提交于 2019-12-22 06:03:11
问题 Would someone be able to assist on the error below? It is occurring on the start up of SonarQube 5.6 running on Java 8u71 and an Oracle database. This instance was just update from 5.2. I had the Puppet addon and uninstalled it as an attempt to solve the error. I confirm Elasticsearch is on port 9001 after startup. 2016.06.13 00:16:04 ERROR web[o.s.s.es.BulkIndexer] Fail to execute bulk index request: Bulk[671 index request(s) on index rules and type activeRule] org.elasticsearch.transport

How does sonar:sonar work?

梦想与她 提交于 2019-12-22 04:33:17
问题 We want to use SonarQube with some CI tool in our project. Sonar Server url is configured in main pom.xml . There are several team memebers in the project. So what happen when one team member executes sonar:sonar locally with his local changes, then another team member executes sonar:sonar with his local changes, and then someone executes sonar:sonar from CI tool (it is configured to analyse source code in Git repository)? Will SonarQube display issues related team members local changes? What

Automatically remove Sonarqube branch projects when git branch merged / removed

与世无争的帅哥 提交于 2019-12-22 04:32:11
问题 We currently have a jenkins pipeline using Multibranch Workflow plugin . Each git branch execute a sonarqube analysis creating a sonarqube project using the sonar.branch property. This is very useful because each branch is being analyzed before merge it, the problem appear when a branch is merged with master and disappear on GIT, the project continues on sonarqube and need to be deleted manually. Is There a way to do it automatically? or any other recomendation? 回答1: You can define a method

How can I integrate Jacoco reports with SonarQube without using maven?

怎甘沉沦 提交于 2019-12-22 04:12:09
问题 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 metadata sonar.projectKey=key sonar.projectName=name sonar.projectVersion=1.0 sonar.jacoco.reportPath=jacoco.exec sonar.tests=junit sonar.dynamicAnalysis=reuseReports sonar.java.coveragePlugin=jacoco sonar.jacoco.reportMissing.force.zero=true #

Export list of coding rules from Sonarqube

你说的曾经没有我的故事 提交于 2019-12-22 04:06:07
问题 I am trying to find a way to get a list of all Sonarqube Java (or whatever) rules (with keys, description, etc.) and export it as an Excel, csv or xml. I get to list them "dynamically" like this, but I would like to have them all in a file. Does anyone know how to do this? 回答1: You can use the /api/rules web service: http://docs.sonarqube.org/pages/viewpage.action?pageId=2392166 回答2: Check this out http://nemo.sonarqube.org/profiles The initial Profile view just lists all the rules. You can

The prefix “sonar” for element “sonar:sonar” is not bound

ⅰ亾dé卋堺 提交于 2019-12-22 03:23:38
问题 I have a build.xml-file that looks something like this: <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml" classpath="/path/sonar-ant-task.jar"/> <target name="sonar"> <sonar:sonar/> </target> And when I run the file I get: The prefix "sonar" for element "sonar:sonar" is not bound. Any obvious things I'm missing? 回答1: You're missing the namespace declaration in the top project element of your Ant script. xmlns:sonar="antlib:org.sonar.ant" ought to do it. 回答2: In ant you

SonarQube for Drupal Projects

北城以北 提交于 2019-12-22 00:28:36
问题 Currently i am using SonarQube with latest version 5.0 . I am using SonarQube for scanning PHP projects with PHP plugin. Now there some queries which i having regarding SonarQube and PHP Plugin. Why SonarQube guys deprecated the old PHP Plugin which is more configurable than the Previous one. Is it possible to Analyze Drupal Projects with SonarQube. Thanks in advance for the answers. 回答1: After doing so much research for SonarQube Coding Standards i came to following conclusion. please find

Issues (auto) closed and re-open

天大地大妈咪最大 提交于 2019-12-21 21:08:36
问题 Dear SonarQube Development team and other experts, I use SonarQube 5.3 and MSBuild Runner. A few weeks ago, I experienced issues when closing the program. These issues persisted even when leaving a file unchanged. Furthermore, these issues may be oustide the range of 1000 lines. I'm working on improving myself thanks especially to SonarQube. Currently, I eagerly await the next release, because: The next release has promised to fix among other things, the 1000 line restriction. My hope is that

Bamboo + sonar.dynamicAnalysis=reuseReports = 0% Rules Compliance

橙三吉。 提交于 2019-12-21 20:08:12
问题 Bamboo is in place to do continuous builds, but want to use Sonar for quality metrics tracking. Unit test pass/fail and Clover code coverage metrics must be captured in Bamboo. But, these same values should be sent to Sonar as well, so as to not increase build duration by running unit tests and Clover twice. Have been able to send these metrics from Bamboo builds to Sonar using "sonar.dynamicAnalysis=reuseReports" directive with the maven build. But the "Rules Compliance" metric in Sonar goes