sonarqube

SonarQube JIRA plugin - how to configure authorization data and what permissions a user needs?

99封情书 提交于 2019-12-20 06:13:11
问题 http://docs.sonarqube.org/display/PLUG/JIRA+Plugin In the above instruction: set the sonar.jira.url , sonar.jira.login.secured and sonar.jira.password.secured properties. It's a JIRA user or SonarQube user, or both? What kind of permission this user needs? 回答1: Jira user Permissions: view project view issues create issue SOAP base URL value is relative to Server URL so you can remove the entered value. 来源: https://stackoverflow.com/questions/33046953/sonarqube-jira-plugin-how-to-configure

Sonar violation: “Method may fail to close stream on exception”

我是研究僧i 提交于 2019-12-20 06:03:07
问题 I have this method: private void unZipElementsTo(String inputZipFileName, String destPath) throws FileNotFoundException, IOException { OutputStream out = null; InputStream in = null; ZipFile zf = null; try { zf = new ZipFile(inputZipFileName); for (Enumeration<? extends ZipEntry> em = zf.entries(); em.hasMoreElements();) { ZipEntry entry = em.nextElement(); String targetFile = destPath + FILE_SEPARATOR + entry.toString().replace("/", FILE_SEPARATOR); File temp = new File(targetFile); if (

Sonar violation: “Method may fail to close stream on exception”

眉间皱痕 提交于 2019-12-20 06:02:04
问题 I have this method: private void unZipElementsTo(String inputZipFileName, String destPath) throws FileNotFoundException, IOException { OutputStream out = null; InputStream in = null; ZipFile zf = null; try { zf = new ZipFile(inputZipFileName); for (Enumeration<? extends ZipEntry> em = zf.entries(); em.hasMoreElements();) { ZipEntry entry = em.nextElement(); String targetFile = destPath + FILE_SEPARATOR + entry.toString().replace("/", FILE_SEPARATOR); File temp = new File(targetFile); if (

Javadoc for sonar-plugin-api 4.5.2

别等时光非礼了梦想. 提交于 2019-12-20 05:53:09
问题 For the development of my own SonarQube plugin, I am searching for the javadoc (api) of sonar-plugin-api-4.5.2, but I didn't find it on the internet. For the versions 3.x.x maven also downloaded the sources of the jar and so i was able to generate the javadoc out of it. But for the version 4.5.2 of sonar-plugin-api the sources are not part of the maven repository. So my questions are: Is there a javadoc/api for version 4.5.2 of sonar-plugin-api available online? Or where can I get the source

Where is line based SCM blame information stored?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 05:52:43
问题 I can see line based SCM blame information in UI, but where is it stored and how can I retrieve through web API? I am using Perforce plugin. The issue is that the Perforce plugin finds the blame information from history, and because of that if a user has created a debt in a past branch, it still shows on his name in the current branch analysis. The Perforce plugin does not have any such way to disable looking into history beyond the current branch. I need to find another way to find out, if

SonarQube Analysis not showing code coverage

房东的猫 提交于 2019-12-20 05:02:03
问题 I have a Jenkins project to do SonarQube analysis of my NodeJS project. I added istanbul as a dependency to my project's package.json . In the Jenkins build configuration, first I run a shell script: cd ./project-name npm install node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha path-to-unit-tests node_modules/.bin/istanbul report cobertura cd .. This installs the dependencies, runs the tests and generates a code coverage report and generates a cobertura-coverage.xml file. After the

Unable to set up “Sonar Gerrit” Jenkins plugin

走远了吗. 提交于 2019-12-20 04:07:23
问题 I am trying to set up Sonar Gerrit - Jenkins Plugin on a Jenkins job. Context A Jenkins job is launched when a patch set is created to Gerrit Source are pulled with git, cppcheck analysis is launched and a sonar analysis is launched on preview mode. Post-Build action "Post SonarQube issues as Gerrit comments" is launched. Here are the Jenkins analysis logs for the third point. Getting Sonar Report from: [XX].sonar\sonar-report.json Report has loaded and contains 2950 issues Connected to

Is it possible to hide the Technical Debt metric from SonarQube dashboard, entirely?

送分小仙女□ 提交于 2019-12-20 02:57:12
问题 I understand that the Technical Debt metric became part of SonarQube after it was a plugin, but I would like to remove it from the dashboard completely, and only show other metrics. Is that possible from the dashboard settings? if not, I appreciate any directions on what parts of the source code have to be edited. 回答1: Technical Debt is a core feature of SonarQube, so there's no reason why it should be possible to remove it from the main "pages" of the SonarQube web application. If you want

Sonar Lint not in sync with server rules

拥有回忆 提交于 2019-12-20 02:56:35
问题 Sonar Lint 2.0, It's connected to my own Sonar Qube server with no issues reported by the plugin. The issue is that it is not in sync with my server rules. Found those mentioned in the doc for Java but they also seemed not to be all. I wonder if these java rule list are used only when it's not connected to any server only. Does it have a restriction of what rules to use or synchronize when using a remote server? What exactly we can do to make it synch if it is possible. Plateform: Java

SonarQube “Insufficient privileges”

落爺英雄遲暮 提交于 2019-12-20 02:52:59
问题 A lot of our build jobs fail at the moment as of the "Insufficient privileges" problem since the update to 5.x. The problem should be fixed in SonarQube 5.1 as stated in here but either it is in fact not fixed or there is another problem with the same error as we currently run SonarQube 5.1.1. Here's an example of the error message: 08:27:13 [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project server: Fail to decorate 'org.sonar.api.resources