sonarqube

Unable to execute Sonar: Caused by: Java heap space

走远了吗. 提交于 2019-12-10 16:15:31
问题 I am using Sonar Runner 2.2 and set SONAR_RUNNER_OPTS=-Xmx8000m , but I am getting the following error: Final Memory: 17M/5389M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Java heap space How can this be? 回答1: I had the same problem and found a very different solution, perhaps because I don't believe any of the previous answers / comments. With 10 million lines of

SonarQube 6.7 failed to start because CONFIG_SECCOMP not compiled into kernel

孤街醉人 提交于 2019-12-10 15:55:21
问题 I've just upgraded SonarQube from 6.0 to 6.7 LTS running in a CentOS 6 box, and noticed that ElasticSearch (ES) failed to start because the kernel (2.6.32-696.3.1.el6.x86_64) doesn't have seccomp available. This is officially documented at System call filter check and a correct workaround for systems without this feature is to configure bootstrap.system_call_filter to false in elasticsearch.yml . The issue here is because Sonar creates the ES configuration at startup, writing in $SONAR_HOME

Sonar warnings due to unresolvable dependencies

旧时模样 提交于 2019-12-10 15:50:58
问题 Our project is a multi module plugin project built using maven. The Sonar analysis runs fine but in the process generates a lot of warnings and probably incorrect results. Below is the set up of the project and warnings generated during analysis. Any help in fixing these warnings is highly appreciated. Project setup: Sonar analysis via the jenkins build. Jenkins Sonar plugin is used to run the analysis. Jenkins and Sonar along with MySQL are running on different machines. Below properties are

How can we make SonarLint startup faster in Eclipse with lots of projects?

人盡茶涼 提交于 2019-12-10 15:30:37
问题 In our case we had a parent project (trunk) where all plug-ins where sub-projects and we want all the sub projects to have the same rules. In order to make maintenance easier we thought we could bind all plug-in projects in eclipse to trunk (so we can just batch update them etc.). The problem here is that for some reason it always loads all sub projects for each project. 1) they are always the same 2) there is not more information in the call of the sub-project that the former call did not

Why does squid:S1166 not accept exception messages only when logging caught exceptions?

纵饮孤独 提交于 2019-12-10 15:16:13
问题 Quote from the description of the rule (SonarQube 4.5.5): // Noncompliant - exception is lost (only message is preserved) try { /* ... */ } catch (Exception e) { LOGGER.info(e.getMessage()); } By providing the exception class to the logger a stack trace is written to the logs. The problem in our code base is this: By following the Tell, don't ask principle, we use checked exceptions as part of the, what we consider, normal execution paths and we don't want them to result in unreasonably large

SonarQube: How many hours in a day of technical debt?

最后都变了- 提交于 2019-12-10 15:06:59
问题 If SonarQube says I have 1 day of technical debt in a project, does that translate to 24 hours of technical debt or 8 hours of technical debt? 回答1: The translation from hours into days is customisable. By default it's 8 hours, but you can find out your setting by going to Administration > Configuration > Technical Debt. Screenshot of an example, from my project, below: 来源: https://stackoverflow.com/questions/41652842/sonarqube-how-many-hours-in-a-day-of-technical-debt

sonar+github integration

核能气质少年 提交于 2019-12-10 14:24:44
问题 I want to enable sonar with git but is it neccesary that first pull the project from git repository using hudson or something else and then sonar will analyse the code periodically on hudson .am I right means my steps : 1.Pull project from git using hudson. 2.Sonar on hudson will analyse the code and send the updates.? or directly we can use git+sonar how it works ,can anybody guide me to get it work. 回答1: Yes, you need first to pull your project from GitHub, and then launch a Sonar analysis

Bad practice - Class defines compareTo(…) and uses Object.equals()

一曲冷凌霜 提交于 2019-12-10 13:31:13
问题 Wondering what needs to be done for listed method public final int compareTo(final FieldDTO o) { return o.available.compareTo(this.available); its throwing exception on line 2 stating Bad practice - Class defines compareTo(...) and uses Object.equals() 16 days field defines compareTo(FieldDTO) and uses Object.equals() Not sure how should i handle this. Thanks in advance. 回答1: If you define compareTo you should at least define equals boolean equals(it) { return compareTo(it) == 0; } otherwise

Installing Sonar on Ubuntu with mysql

巧了我就是萌 提交于 2019-12-10 13:23:26
问题 I'm trying to get the nativ sonar package working on ubuntu 12.04. It's running and accessable on port 9000 when im running it with H2. If i'm switching over to mysql - its not working, looks like DB-Connection fails. Logginname, table and permission are doublechecked severall times. when i try to acces " http://ip:9000/setup " following message is displayed: We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists. In the logfile i

Sonar maven plugin: same project key for all modules does not work?

我与影子孤独终老i 提交于 2019-12-10 13:14:57
问题 I am using sonar-maven-plugin 3.2 and maven 3.3.9. In the parent POM, I have the sonar.projectKey maven property defined. The value is in effect, I can see it from the printout of sonar. But the mvn sonar:sonar step fails, because the maven modules use the same project key value, because the maven property has the same value in all modules. Sonar gives the error: Project '...' can't have 2 modules with the following key: ... Is there really no way to have a single sonar project that contains