sonarqube

Custom plugin can't copy files from jar because protocol is “jar”

隐身守侯 提交于 2019-12-14 03:42:27
问题 I am developing a plugin for SonarQube, and part of what it must do is copy files from itself to the SonarQube Server's directory. I am using Apache Commons IO, and have found that FileUtils.copyDirectory works wonderfully (after testing it with a main method). The trouble comes from trying to get the directory of files that I want to copy from the jar of the plugin itself. I have tried this: public File getSrcDir() { URL inputUrl = getClass().getResource("/images"); File srcDir = FileUtils

Sonarqube 5.2 / Checkstyle plugin 2.3 : Enabling SummaryJavadocCheck makes the analysis failed

非 Y 不嫁゛ 提交于 2019-12-14 03:36:26
问题 I recently change my SONARQUBE configuration: Before: SonarQube 5.1 Java plugin 3.0 PMD plugin 2.3 Checkstyle plugin 2.2 FindBugs plugin 3.2 Issue Assign plugin 1.6 After: SonarQube 5.1 Java plugin 3.3 PMD plugin 2.4.1 Checkstyle plugin 2.3 FindBugs plugin 3.2 Issue Assign plugin 1.6 On new configuration I have enabled all new rules brought from 3.1 to 3.2 Java plugin version. The analysis batch fails at IssueTracking Decorating stage of the batch analysis: [INFO] [08:37:25.503] Compare over

How to get all projects on a dashboard in multiple columns?

半腔热情 提交于 2019-12-14 03:14:35
问题 We have a TV displaying our Sonar stats for all our projects, but now that we have 20+ projects, and it doesn't all fit in the screen. We would like our dashboard to look like this (so all the projects fit on one screen): +----------+----------+ +----------+----------+ | Name | Coverage | | Name | Coverage | +----------+----------+ +----------+----------+ | Project1 | 45 | | Project5 | 18 | | Project2 | 15 | | Project6 | 22 | | Project3 | 45 | | Project7 | 45 | | Project4 | 15 | | Project8 |

How to change the SonarQube-URL from “http://localhost:9000” to something like “http://XXX:9000”?

試著忘記壹切 提交于 2019-12-14 03:03:12
问题 I want to analyze Java-projects with SonarQube. SonarQube is running on a server. I can connect to that server remotly. SonarQube is accessible on "http://localhost:9000". I want now to change that URL to something like "http://XXX:9000". I read that this is possible with the "Server base URL"-field under "Administration" --> "General Settings" in SonarQube. But it doesn't work... If I type this in my browser, then only the loading screen is shown. On "http://localhost:9000" it is still

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

No ProjectInfo.xml files were found error from command prompt using MSBuild SonarQube Runner v1.0

给你一囗甜甜゛ 提交于 2019-12-14 02:38:39
问题 I'm trying out SonarQube using the new MSBuild SonarQube Runner v1.0. The Pre-processing works fine E:\sonarQube\MSBuild.SonarQube.Runner-1.0>MSBuild.SonarQube.Runner.exe begin /k:"MyKey" /n:"MyProject" /v:"1.0" ....... Process returned exit code 0 Pre-processing succeeded. Then MSBuild works E:\sonarQube\WebApplication2013>msbuild Microsoft (R) Build Engine version 4.0.30319.34209 [Microsoft .NET Framework, version 4.0.30319.34209] Copyright (C) Microsoft Corporation. All rights reserved. ..

No Unit Test Success data for tests written in Groovy

假装没事ソ 提交于 2019-12-14 02:31:23
问题 I haven't used Sonar in project with mixed Java and Groovy files for over a year and it is great that SonarQube has become able to support multiple languages in the same project/module (instead of making two separate analyzes for Java and Groovy). Unfortunately I spotted a regression. In the past for Java project with tests written in Spock/Groovy they were normally reported in a test summary. Currently for that projects there is entire "Unit test success" section missing. It seems that the

Sonar Custom reports

雨燕双飞 提交于 2019-12-14 02:27:33
问题 I need to generate custom reports using Sonar sql server database data. The structure of the database is quite confusing me. How can I get below details of my project? LoC(lines of code) Rule Compliance % Comment % Public Documented API % Security Violations Violations (excluding Info) Duplicated Line % Once I get these details how can I stucture my report because root data is having many childs. 回答1: I think you probably really want to use the web services to extract data, rather than

Sonar maven jacoco code coverage for Multimodule project

徘徊边缘 提交于 2019-12-14 02:18:12
问题 I have a multimodule project with a parent pom.xml and two modules in it. Project.jar and Project.war. All the test cases are under Project.jar. When I run mvn sonar.sonar goal on the Parent pom, jacoco.exec is not getting generated and code coverage is blank. I have the following properties in the parent pom. <properties> <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> <sonar.jacoco.reportPath>${project.basedir}/target

SONAR - How to exclude packages that is defined under “sonar.test”

断了今生、忘了曾经 提交于 2019-12-14 01:00:57
问题 I have a projects in JAVA that I analyze using sonar. Some of the java packages that I have are all under source folder. I also have some test file that I have under a different folders. Now, in Sonar, I organize my projects under a different structure, i.e. for a project "search", I only wants to include "search" package. These exclusion is quite easy to accomplished using sonar.exclusion properties. My question, though, is how about the test? how can I exclude some of the packages? Because