sonarqube

Tasks are no more supported on batch side since SonarQube 5.2

混江龙づ霸主 提交于 2019-12-24 00:43:51
问题 I install SonarQube 5.2 and Sonar-runner 2.4 (latest versions). I managed to start SonarQube but I get the following error when trying to run Sonar-runner: ERROR: Unable to execute Sonar ERROR: Caused by: Tasks are no more supported on batch side since SonarQube 5.2 ERROR: EDIT: The following exception is thrown when I run the command with --debug ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1

Reduce log level in Sonar 2.1.x

怎甘沉沦 提交于 2019-12-24 00:38:00
问题 I have a Maven 3.x build that uses Sonar 2.1.x for quality control. The maven-sonar plugin is used from inside Jenkins to run the Sonar checks. During the Jenkins build, when Sonar kicks in, it logs A LOT of not so useful information at INFO level: [INFO] [15:29:14.195] Java version: 1.6 [INFO] [15:29:20.853] Execute PMD 4.3 done: 6658 ms [INFO] [15:29:20.853] Sensor PmdSensor done: 6658 ms [INFO] [15:29:20.854] Sensor ProfileSensor... [INFO] [15:29:21.186] Sensor ProfileSensor done: 332 ms

SonarQube is unable to analyze file (NullPointerException)

做~自己de王妃 提交于 2019-12-24 00:28:20
问题 I have something like this in my Java 8 project: import java.util.function.Function; public class Foo { private static final Function<Object, Object> FOO = o -> { return null; }; } Every time I'm running SonarQube analysis, it fails with a NullPointerException mvn clean install mvn sonar:sonar Exception: SonarQube is unable to analyze file : '/Users/rzueger/Development/experimental/gitautomergetest/myclone/src/main/java/ch/rallo/automerge/Foo.java' at org.apache.maven.lifecycle.internal

how to list methods with most cyclomatic complexity

允我心安 提交于 2019-12-24 00:16:45
问题 I have installed sonar 2.12. Going to Violations > Major > Cyclomatic Complexity I can see the number of methods with CC over 10, but I need to go method by mehod to see its actual CC. I wonder if there a way to see a list of the methods with most CC? 回答1: Our tool, SourceMeter has a plug-in for SonarQube that can list the most complex methods. It provides widgets for method level metrics. You can check it out here. 回答2: There should be a rule to check for methods with high complexity;

Sonarqube: use multiple custom quality profiles for a single multilanguage project…?

ぃ、小莉子 提交于 2019-12-24 00:04:32
问题 Maybe this is already a feature of Sonarqube, but I can’t find evidence of it anywhere. We have projects that contain java, javascript, and groovy code. I can analyze each language separately, or I can do a multi-language analysis if I use the default quality profiles for each language. But I can’t figure out how to use three custom profiles (java, javascript, and groovy) for the same project. Is it possible? I’m currently running Sonarqube 4.3.3, and using the maven to build and analyze the

Incompatible heap sizes error in Sonarqube

时间秒杀一切 提交于 2019-12-24 00:02:17
问题 I'm trying to install SonarQube on a Maxc (actually sonar source, tutorial is at http://chapter31.com/2013/05/02/installing-sonar-source-on-mac-osx/). The result of the "sonar start" command is the following output in sonar.log: --> Wrapper Started as Daemon Launching a JVM... JVM exited while loading the application. Error occurred during initialization of VM Incompatible minimum and maximum heap sizes specified JVM Restarts disabled. Shutting down. <-- Wrapper Stopped I've tried to set the

CA0001: Object reference not set to an instance of an object

丶灬走出姿态 提交于 2019-12-23 21:48:13
问题 Please read the question first, before flagging it as duplicate for "Object reference not set to an instance of an object" I run a build with SonarQube. I get the following error: CA0001 : Rule=Microsoft.Design#CA1011, Target=Company.Project.Service.Report.Wrappers.Helper.ReportPrintingOrderDriver`2.#DrivePrintingProcess(Company.Product.Service.Contracts.Report.CommonExportReportRequest,Company.Project.Common.Containers.LIHierarchy`3<!0,!1,System.Int32>,Company.Project.Service.Report.Wrappers

SonarQube: Multiple unit test and code coverage result files

点点圈 提交于 2019-12-23 21:14:04
问题 we have the following structure in our project: maven project 1 maven project 2 module 1 module 2 module 3 maven project 3 Project 1 and 3 have each one unit test and code coverage result file. They are no problem. Project 2 has three unit test and code coverage result files, one for each module. Now I want to show the unit test and code coverage in SonarQube. But I can only configure one result file (sonar.surefire.reportsPath and sonar.emma.reportPath). How can I configure the three files,

Analysing with SonarQube causes 0 files indexed and no reports (Maven Project)

你。 提交于 2019-12-23 20:58:03
问题 I have some trouble using SonarQube on an extern server. I'm working with SonarQube just for a couple days now and when I analyze my Maven project local everything is working fine. We are using a Postgresql database. But there are some problems when I try to analyze a project on an extern SonarQube server. The Environment: I'm using SonarQube 4.4 and Maven 3.3. Please find my Maven settings.xml down below. <profile> <id>sonar</id> <activation> <activeByDefault>true</activeByDefault> <

Sonarqube support for ‘.Net Core’ (with .xproj extention) projects

雨燕双飞 提交于 2019-12-23 20:29:22
问题 Anyone has any idea on whether ‘.Net Core’ (with .xproj extention) projects are supported by Sonarqube v4.x or v5.x (C# plugin version 5.2)? Though there is no error message in SonarQube Scanner log file, all our .xproj files are listed under “Skipped projects” in ProjectInfo.log file and dashboard is showing results only for .csproj files and not for any .xproj files. Thank you for the your response for this 回答1: Per documentation of the SonarQube Scanner for MSBuild (which is the scanner to