sonarqube

How to migrate SonarQube 6.7 from MySQL to postgresql

六月ゝ 毕业季﹏ 提交于 2020-02-02 13:30:31
问题 We need to migrate SonarQube from MySQL to posgresql. To achieve this, I would export from MySQL and import to postgresql. This I can handle, there are more than enough manuals for this and also I'm OK with database magic ;) However, my question is: would that work for SonarQube in general? Does SonarQube use some database-specific magic that would eliminate the ability to migrate? Steffen 回答1: Good news : there is no specific database magic used in SonarQube. However, note that some column

Java Runtime Engine support for SonarQube 7.x

不问归期 提交于 2020-01-30 06:46:27
问题 On the SonarQube requirements page you can read that JRE 8 is a requirement and newer Java runtime versions are not supported. Looking at the Oracle Java SE Support Roadmap the public update support for version 8 could be stopped on January 2019. Does anyone know how Sonarsource will update their JRE usage (web application, plugins and scanner) in the coming period? Update (07-06-2018) Jira item SONAR-10574 describes the upgrade of Elasticsearch to 5.6.8 in a 7.x version although looking at

Java Runtime Engine support for SonarQube 7.x

本小妞迷上赌 提交于 2020-01-30 06:46:25
问题 On the SonarQube requirements page you can read that JRE 8 is a requirement and newer Java runtime versions are not supported. Looking at the Oracle Java SE Support Roadmap the public update support for version 8 could be stopped on January 2019. Does anyone know how Sonarsource will update their JRE usage (web application, plugins and scanner) in the coming period? Update (07-06-2018) Jira item SONAR-10574 describes the upgrade of Elasticsearch to 5.6.8 in a 7.x version although looking at

Sonar + JaCoco not counting Groovy code as covered

假如想象 提交于 2020-01-30 05:49:23
问题 I have a Groovy class with a single static method: class ResponseUtil { static String FormatBigDecimalForUI (BigDecimal value){ (value == null || value <= 0) ? '' : roundHalfEven(value) } } It has a test case or few: @Test void shouldFormatValidValue () { assert '1.8' == ResponseUtil.FormatBigDecimalForUI(new BigDecimal(1.7992311)) assert '0.9' == ResponseUtil.FormatBigDecimalForUI(new BigDecimal(0.872342)) } @Test void shouldFormatMissingValue () { assert '' == ResponseUtil

Reduce Cyclomatic Complexity of Switch Statement - Sonar

妖精的绣舞 提交于 2020-01-30 04:38:27
问题 I want to reduce cyclomatic complexity of my switch case my code is : public String getCalenderName() { switch (type) { case COUNTRY: return country == null ? name : country.getName() + HOLIDAY_CALENDAR; case CCP: return ccp == null ? name : ccp.getName() + " CCP" + HOLIDAY_CALENDAR; case EXCHANGE: return exchange == null ? name : exchange.getName() + HOLIDAY_CALENDAR; case TENANT: return tenant == null ? name : tenant.getName() + HOLIDAY_CALENDAR; default: return name; } } This code blocks

Reduce Cyclomatic Complexity of Switch Statement - Sonar

馋奶兔 提交于 2020-01-30 04:38:11
问题 I want to reduce cyclomatic complexity of my switch case my code is : public String getCalenderName() { switch (type) { case COUNTRY: return country == null ? name : country.getName() + HOLIDAY_CALENDAR; case CCP: return ccp == null ? name : ccp.getName() + " CCP" + HOLIDAY_CALENDAR; case EXCHANGE: return exchange == null ? name : exchange.getName() + HOLIDAY_CALENDAR; case TENANT: return tenant == null ? name : tenant.getName() + HOLIDAY_CALENDAR; default: return name; } } This code blocks

SonarQube and BitBucket Integration on Pull Request

不羁岁月 提交于 2020-01-29 17:54:09
问题 I am new to BitBucket and have inherited a project, now trying to get up to speed and code-complete. We have a DevSecOps pipeline using BitBucket as SCM, SonarQube as our static analysis engine and either Maven or Jenkins, depending on dev team preference. Java is the development language. My Tech Lead would like to prevent a merge of a pull request if there are Critical or High issues found in the SonarQube analysis of code in the pull request. So, I am looking for a way to trigger SonarQube

SonarQube + Firefox localization

我们两清 提交于 2020-01-25 18:29:47
问题 I am having a localization problem when loading SonarQube 5.1.1 on Firefox. The same problem does not happen on Google Chrome. It does not happen only on my machine. Even when I try to load the Sonar online demo, the same problem happen: http://nemo.sonarqube.org/ Wrong on Firefox Right on Google Chrome How can I fix that? Thanks! 回答1: Same here: SonarQube - No translations: NS_ERROR_DOM_QUOTA_REACHED The cause of the problem is the localstorage. Open JavaScript console (F12 -> Console) Type

SonarQube + Firefox localization

空扰寡人 提交于 2020-01-25 18:29:44
问题 I am having a localization problem when loading SonarQube 5.1.1 on Firefox. The same problem does not happen on Google Chrome. It does not happen only on my machine. Even when I try to load the Sonar online demo, the same problem happen: http://nemo.sonarqube.org/ Wrong on Firefox Right on Google Chrome How can I fix that? Thanks! 回答1: Same here: SonarQube - No translations: NS_ERROR_DOM_QUOTA_REACHED The cause of the problem is the localstorage. Open JavaScript console (F12 -> Console) Type

Merging sonar metrics across a maven multi-module project

送分小仙女□ 提交于 2020-01-25 12:40:09
问题 I've inherited an odd maven multi module project. The standard business classes and unit tests are in a module called 'code' and we've nice simple working sonar metrics for this module. The second module holds various integration style tests which run against a deployed glassfish server, these run as unit test in the integ-test module. pom.xml // root level, code // business code and unit tests :-) moduleA moduleB integ-test // ;-( moduleA moduleB I know the simplest option is to move the