sonarqube

SonarQube won't display System Info

*爱你&永不变心* 提交于 2019-12-12 00:52:13
问题 When I try to display the system info for my SonarQube 5.6 server I get an exception in the logs on the page. Any idea what could be causing this? This question (Getting an error as "Could not initialize class sun.net.www.protocol.http.HttpURLConnection" in ZK Framework) implies that the jar is missing from the jdk. Is that possible? I'm using java-1.8.0-openjdk-1.8.0.151-1.b12.el6_9.x86_64. Has the HttpUrlConnection implementation been changed? 2018.04.23 12:12:15 ERROR web[rails] Java:

How to export Quality Profile rules into Excel

孤街醉人 提交于 2019-12-11 23:08:03
问题 We are using SonarQube 4.5.1 for our projects and are planning to provide list of rules activation/deactivation to end users. What is best way to export/import within SonarQube in Excel? There is option of backup in Quality Profile but it did not export description. I looked directly in the database with rules table, but due to some HTML tag this is not working for delimited with semicolon. I would also like to know how we can add customized rules to existing set of rules. What is the

Trying to install sonarqube on linux machine but getting error

泄露秘密 提交于 2019-12-11 23:03:30
问题 I am trying to install sonarqube-5.1 on Linux x86_64 and I did below steps 1: sudo wget http://downloads.sonarsource.com/sonarqube/sonarqube-5.1.zip 2: unzip sonarqube-5.1.zip 3: sudo mv sonarqube-5.1 /usr/local/ 4: sudo /usr/local/sonar/bin/linux-x86-64/sonar.sh start output Starting SonarQube... Started SonarQube. But when I am trying to open http://my_local_IP:9000 Then It is giving below error Unable to connect Firefox can't establish a connection to the server at my_local_IP:9000. The

微服务测试之静态代码扫描

本秂侑毒 提交于 2019-12-11 21:02:58
静态代码扫描为整个发展组织增加价值。无论您在开发组织中发挥的作用如何,静态代码扫描解决方案都具有附加价值,拥有软件开发中所需要的尖端功能,最大限度地提高质量并管理软件产品中的风险。 背景 微服务架构模式具有服务间独立,可独立开发部署等特点,独立开发诱发了技术上的分离,HTTP通信增加了问题诊断的复杂度,对系统的功能、性能和安全方面的质量保障带来了很大的挑战。 “ 微服务架构对测试的挑战 微服务架构模式下多个独立业务服务同时开展开发工作,每个系统都有各自的业务范围和开发周期要求,这样一来,下图所示的传统流程中产品经理提供需求,需求人员进行需求分析、开发人员进行开发,最后交给测试人员进行测试的方法,就无法满足测试覆盖和测试效率的要求。 相对于传统的单体模式而言,微服务模式下对测试带来的挑战总结起来包括以下内容: 1. 微服务系统模块层次化,需要保证模块内部代码的质量。这种场景下传统的端到端的测试无法满足测试要求; 2. 需要保证各个微服务系统内部模块间的正确性。系统模块间以及前端和后端通常会同时开展开发工作,模块间或者前后端通过接口(通常是Restful http接口)进行连接,而模块和后端往往没有界面,为了保证各个系统单个依赖系统的正确性,因此需要借助Mock技术隔离依赖的前提下进行接口级的测试; 3. 需要保证微服务系统中的接口一致性,即契约的一致性

Does continuous inspection still work with Sonar 5.1.X?

我们两清 提交于 2019-12-11 20:56:09
问题 I'm trying to run a preview analysis for a (Java) project of ours with SonarQube 5.1.1. I am able to get a local report generated, however I get no coverage data, and I also get the message [INFO] [XX:YY:ZZ.ZZZ] Build Breaker plugin is no more supported in preview/incremental mode . If I check here, the page says that Starting with SonarQube 5.1, the Build Breaker plugin does not work any longer in the preview & incremental modes. . I'm confused - I thought that for continuous inspection one

Can we use an external Elasticsearch instance instead of inbuilt one in Sonarqube?

时间秒杀一切 提交于 2019-12-11 20:42:42
问题 As we have maintained explicitly an Elasticsearch service on our server, can we use that Elasticsearch service instead of inbuilt one which is in Sonarqube 4.5? If not, then can we access built in Elasticsearch service on HTTP? If so, could you please tell us how to access it? Thanks, Pravin 回答1: SonarQube embeds an E/S server for its own needs, and this should remain a black box for SonarQube users. In SonarQube 5.0, you will be able to enable ElasticSearch HTTP connector for debugging

Java HeadlessException?

蓝咒 提交于 2019-12-11 20:35:50
问题 I'm trying to do unit test to my java GUI source code in Eclipse. When I execute unit test with jUnit, all of my test succeed. However, I encountered a small exception in SonarQube report as well as my tests which was successful in eclipse are reported all failed. Exception messages are here. No X11 DISPLAY variable was set, but this program performed an operation which requires it. java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which

SonarQube 4.4 LDAP Plugin 1.4+AD

我怕爱的太早我们不能终老 提交于 2019-12-11 20:23:33
问题 I'm triying to make sonar work with the LDAP+AD authentication but I'm having a lot of trouble geting it to work. I'm either getting the "org.sonar.api.utils.SonarException: Unable to open LDAP connection" or the "Unable to retrieve details for user xxx.xxx". Here's my current configuration: # Configuration sonar.security.realm=LDAP sonar.security.savePassword=true ldap.url=ldap://tpr.mycompany:3268 # User Configuration ldap.user.baseDn=OU=Users,OU=MYCOMPANY,DC=tpr,DC=mycompany,tpr.mycompany

How can one turn off sonar analyser but still get coverage report?

拜拜、爱过 提交于 2019-12-11 18:07:31
问题 It has been cleared here that from Sonarqube version 6.2 that coverage reports are merged and there won't be separate unit and integration coverage report anymore. We still interested to have these two coverage reports separately. So, We have three sonar projects: unit-tests, integration-tests, whole-project(which is responsible to create overall coverage report) Problem: All source files are analysed in all three projects. Since the number of files are too many, it takes several minutes to

SonarQube Scanner execution fails: java can't be indexed twice

元气小坏坏 提交于 2019-12-11 17:07:17
问题 I am working with: sonarqube 7.3 scanner 3.2.0.1227 I have a Gradle multi module sonarqube-03 sonarqube-03-domain sonarqube-03-repository sonarqube-03-repository-impl I have just one sonar-project.properties file located in the root project sonarqube-03 with the following content: # must be unique in a given SonarQube instance sonar.projectKey=manolito-labs:sonarqube-03 # this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. sonar.projectName