sonarqube-web

How to install SonarQube with Open JDK 11

一曲冷凌霜 提交于 2021-01-28 07:44:20
问题 I am trying to install SonarQube 8.5 (community version) on my local machine . My machine already has Java JRE 8 installed. SonaQube has pre-requirement JRE 11 or Open JDK 11 . Since you cannot download JRE 11 anymore, I decided to go with Open JDK 11 I want to set SonarQube to use specific JDK. How do i do that? Quick SO search suggest to use wrapper.java.command in wrapper.conf file, but this line is not available SonarQube 8.5, OS Windows: 10 回答1: If you want your sonarqube to use specific

SonarQube adds all issues as Code Smell

二次信任 提交于 2020-01-14 14:24:46
问题 After upgrading to 5.5 version and now the latest (5.6) SonarQube always shows the issues I create through my plugin as "Code Smell". I would like to know more about the categorization and how can I add them as other types ("Vulnerability" and "Bug"). The code where I create the issues is as follows: Issuable issuable = this.resourcePerspectives.as(Issuable.class, inputFile); if (issuable != null) { Issue issue = issuable.newIssueBuilder() .ruleKey(activeRule.ruleKey()) .line(vulnerability

SonarQube won't refresh after deleted closed issues?

↘锁芯ラ 提交于 2020-01-06 02:25:09
问题 After configed "Delete closed issues after" and "Keep only one snapshot a day after" to 1 under "Settings > General Settings > General > Database Cleaner", and rerun analyze. The numbers under Issues are not correctly. Is there a way to refresh or config something to make sure the numbers are correct? Thanks! Here is the example. There are 16 issues in Unresolved. I checked all issues in the detail window, but only got 9 issues. Click me to see the screenshots 回答1: Okay, someone given me a

Sonarqube set leak period to specific version other than previous version

你。 提交于 2019-12-23 02:49:05
问题 Evaluating Sonarqube (Version 5.4), we want to migrate our current workflow using another Audit tool, which works like that : The current version that runs in production is our reference version. A new development version is checked out from GIT, a diff process calculates the new and modified files vs. the reference version and starts the audit for these files. There's also a slightly different handling of legacy code (components that already existed in 2012) and new components (after 2012).

All quality profiles have no rules when SonarQube is upgraded to 5.4

六月ゝ 毕业季﹏ 提交于 2019-12-18 16:10:56
问题 We are currently running a production server at version 5.1.2 which we are planning to upgrade. Tests have shown that upgrading to 5.3 works as expected. However, upgrading from 5.1.2 -> 5.4 or 5.1.2 -> 5.3 -> 5.4 results in all quality profiles from the 5.1.2 instance becoming empty - no rules assigned at all. Worse, backing up the rules and attempting to restore them fails silently. Has anyone else experienced this? Is there a work-around? Thanks in advance. 回答1: The update instructions in

Administration tab doesn't show all the options

雨燕双飞 提交于 2019-12-14 02:42:09
问题 We've upgraded our SonarQube server from 6.1 to 6.5 version and post upgrade we aren't able to see the administration options for any of the projects as earlier. We see only few options enabled "Quality Profile & Quality Gate". However, we can browse to each of the tabs by creating urls in the browser. Its just that the UI doesn't show these options. Can someone let us know what could've gone wrong and help us resolve this issue. This would play a major role in helping the customers in

sonarqube how to access to default technical debt pyramid values from web service api?

帅比萌擦擦* 提交于 2019-12-11 05:07:11
问题 Im trying to access to default technical debt pyramid values, the chart that appears on dashboard, using the web service api that sonarqube provide. I don't have SQALE plugin installed, i just need those default values. there is any way to access to these values using the web service api?. Thanks. 回答1: Values in the technical debt pyramid was the amont of technical debt for each characteristics. As characteristics have been removed in SonarQube 5.5, I would not recommend you to try to use

SonarQube: How to configure leak period start every X days

孤人 提交于 2019-12-11 04:54:35
问题 I'm Using SonarQube 5.6.5 and trying to configure it so that the Leak Period is starting every x (=21) days. Our sprints are running 21 days so I want the differential view is showing the changes since last sprint start. I get this only if I manually change each sprint start the 'Leak Period' to the date of the sprint start. Is there a more convenient way to do so? 回答1: Fixing the Water Leak (paradigm at the core of SonarQube features/UX) is about making sure that your software quality does

sonarqube missing project dashboard

柔情痞子 提交于 2019-12-09 16:18:01
问题 I have SonarQube 6.1. When I click on a project entry from the main dashboards projects widget, I get to a project home page where it says "quality gate passed" and where some issues are listed ('Bugs', 'Vulnerabilities', 'Code smells' and 'Duplications'). On the left side, close to the top, below the project name, there is a "home" icon and to the right it says 'Issuses', 'Measures', 'Code' and 'Administration'. When I tried to get to a project dashboard - similar to the main dashboard, but

New code coverage metrics not returning values from SonarQube 5.3 API

怎甘沉沦 提交于 2019-12-08 13:14:46
问题 I need to fetch unit test coverage data for new code changes via the api. The metrics. I can see the data in SonarQubeDashboard but the api is not returning any values for the metrics like: new_coverage new_line_coverage (etc) I am invoking the api : https:///api/resources?format=json&metrics=ncloc,line_coverage,new_line_coverage Even the Public Nemo Instance does not return these metric values: https://nemo.sonarqube.org/api/resources?format=json&metrics=ncloc,line_coverage,new_line_coverage