Sonar

Upgrade SonarQube to 5.2 fails with java.util.concurrent.CancellationException: null

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've tried to upgrade SonarQube from 5.0 to 5.2, that failed so I've run upgrade from 5.0 through all intermediate versions up to 5.1.2 - all of them succeeded, but upgrade from 5.1.2 to 5.2 failed again with the same error. I haven't found anywhere similar question reported, so asking here for help what can be wrong and how to fix it. 2015.12.14 16:54:33 ERROR web[o.s.s.s.IndexQueue] Could not execute normalization for stack java.util.concurrent.CancellationException: null at java.util.concurrent.FutureTask.report(FutureTask.java:121) ~[na

Sonar Checkstyle import: Rule template can't be activated on a Quality profile

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create a new quality profile with existing checkstyle ruleset but get the error message: Rule template can't be activated on a Quality profile: checkstyle:com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck I use the simplest ruleset example from the checkstyle officail site : <module name="Checker"> <module name="JavadocPackage"/> <module name="TreeWalker"> <module name="AvoidStarImport"/> <module name="ConstantName"/> <module name="EmptyBlock"/> </module> </module> Versions: Sonar 4.5.1 with Checkstyle plugin 2.1

Sonar fails on analysis Unable to create symbol table for

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: when i run analysis with SonarQube 5.0.1 i receive the following exception on java source I'm running this analysis with maven project by running the following command : mvn sonar:sonar -Psonar Please help Gidi [22:04:35]: [ERROR] [22:04:35.535] Class not found: javafx.beans.Observable [22:04:35]: [ERROR] [22:04:35.884] Class not found: javafx.beans.Observable [22:04:36]: [ERROR] [22:04:36.403] Class not found: javafx.beans.Observable [22:04:37]: [ERROR] [22:04:37.014] Unable to create symbol table for : /home/ciuser/buildAgent/work

SonarQube 4.4 not displaying cobertura unit tests or code coverage for grails 2.4.3 with spock tests

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have SonarQube 4.4 installed on my machine. I am trying to generate metrics for a grails (2.4.3) project that has tests written in Spock framework. However, sonar does not show unit tests results or unit tests coverage. I verified that cobertura coverage.xml gets generated in the path provided below target/test-reports/cobertura/coverage.xml And I have sonar.groovy.cobertura.reportPath property in my pom.xml mapped to the above path. Running mvn sonar:sonar (maven version 3.2.3) on this project completes successfully and the console log

Sonar fails to connect to database

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using the following software: Sonar 3.4.1 Mysql 5.1 Maven 2.2.1 Tomcat 7 I have a pom.xml file which I am trying to execute with Sonar but getting the follwing error. [INFO] Building asgard-bpm [INFO] task-segment: [sonar:sonar] (aggregator-style) [INFO] ----------------------------------------------------------------------- [INFO] [sonar:sonar {execution: default-cli}] [INFO] Sonar host: http://{host:8080}/sonar [INFO] Sonar version: 3.4.1 [INFO] Execute: org.codehaus.sonar:sonar-maven-plugin:3.4.1:sonar [INFO] [sonar:sonar {execution:

sonar skipping all modules except root one

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run sonar on entire project using maven, but for some reason it skips submodules and analyse only root module. Is there any explanation of such a strange behaviour? Any help is greatly appreciated! Here is maven final output: ADDITION mvn clean install doesn't skip anything, but mvn sonar:sonar do. 回答1: The SonarQube Maven Plugin is an aggregator plugin. It's executed only on the root module. That's the reason why Maven flags sub-modules as SKIPPED, even if they are correctly analysed. 回答2: I do not find full description, but

Upgrade SonarQube issues

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having issues installing my instance of SonarQube 4.4 to 5.1. The instructions say to stop the SonarQube server, match up a couple files (back up DB, copy plugins, etc.), and then restart the sonar server for the updated version. My problem is I'm not sure how to start/stop the server. The commands: bin/<SYSTEM>/sonar stop and NEW_SONARQUBE_HOME/bin/<SYSTEM>/sonar start aren't recognized. Here is what the file location looks like and this is the error I get when I StartSonar on the new instance. When I start from the 5.1 When I start

Getting elasticsearch “can not run as root” error after upgrading from SonarQube 6.5 to 6.6. Nothing else changed

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Getting elasticsearch "can not run as root" error after upgrading from SonarQube 6.5 to 6.6. Nothing else changed. CentOS release 6.8 (Final) Java(TM) SE Runtime Environment (build 1.8.0_101-b13) java.lang.RuntimeException: can not run elasticsearch as root at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.2.jar:5.6.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.2.jar:5.6.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342)

sonarqube6.7部署文档

匿名 (未验证) 提交于 2019-12-03 00:40:02
应用介绍:sonarqube是一个用于代码质量管理的开源平台,用于管理源代码的质量通过插件形式;可以支持包括Java、C#/C++、PL/SQL、Cobol、javascrip、Groovy等等二十几种编程语言的代码质量管理与检测; Sonarqube官网: https://www.sonarqube.org/ 环境:Java环境:jdk1.8+ 安装步骤: https://docs.sonarqube.org/display/SONAR/Installing+the+Server https://www.sonarqube.org/downloads/ 1、 下载及准备: [root@dxm-oss02 src]#pwd /usr/local/src https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.7.zip [root@dxm-oss02 src]#unzip sonarqube-6.7.zip [root@dxm-oss02 src]#chown -R sonar. Sonarqube-6.7 vm.max_map_count=262144 首先创建数据库和用户密码 >CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general

sonarqube+jenkins实现代码持续Review

匿名 (未验证) 提交于 2019-12-03 00:22:01
SonarQube 是 一个开源的代码质量分析平台,便于管理代码的质量,可检查出项目代码的漏洞和潜在的逻辑问题。同时,它提供了丰富的插件,支持多种语言的检测, 如 Java、Python、Groovy、C、C++等几十种编程语言的检测。它主要的核心价值体现在如下几个方面: 检查代码是否遵循编程标准:如命名规范,编写的规范等。 检查设计存在的潜在缺陷:SonarQube 通过插件 Findbugs、Checkstyle 等工具检测代码存在的缺陷。 检测代码的重复代码量:SonarQube 可以展示项目中存在大量复制粘贴的代码。 检测代码中注释的程度:源码注释过多或者太少都不好,影响程序的可读可理解性。 检测代码中包、类之间的关系:分析类之间的关系是否合理,复杂度情况。 SonarQube 平台是由 4 个部分组成: SonarQube Server SonarQube Database SonarQube Plugins SonarQube Scanner SonarQube 在进行代码质量管理时,会从下图 所示的七个纬度来分析项目的质量。 SonarQube 需要数据库的支持,用于存储检测项目后的分析数据,同时为了实现可持续监测,还需要持续集成工具(如Jenkins)的支持,在构建版本前,通过Jenkins+Sonar 插件执行项目分析指令,最终的结果会通过SonarQube