sonarqube5.1

sonarqube 5.1 temp/tmp directory fills up — how can I tell what can be deleted?

回眸只為那壹抹淺笑 提交于 2019-12-23 18:00:38
问题 I have found many posts that indicate that these files will be cleaned up after one week (my temp/tmp has files over one month old). Some say restarting sonarqube will clean these out (does not work for me to restart the application due to continuous integration). Some posts claim that this is fixed in the next sonar and sonarqube release. How do I know (definitively) when it is safe to delete the content from temp/tmp directory without impacting the analyses? Currently there is 31 GB of data

Sonar 5.1 Issues list - How to group by Issue Type

本秂侑毒 提交于 2019-12-23 16:59:54
问题 How can we identify the most common types of issues in a project in our current code base. We have recently upgraded from Sonar 4.5 to 5.1 In 4.5 we used to view the issues list in a specific project, and the issues were grouped by issue type. For instance in one project the rule "Use a logger to log this exception" might be the most common critical rule with 45 violations. We could then use that information to drive improvement efforts. In 5.1 we are now presented with a long list of issues

SonarQube Rules squid:S1451 Copyright and license headers should be defined

六月ゝ 毕业季﹏ 提交于 2019-12-23 12:14:09
问题 All of my SonarQube code analysis Java projects are failing on this rule. Each source file should start with a header stating file ownership and the license which must be used to distribute the application. This rule must be fed with the header text that is expected at the beginning of every file. There is one parameter: headerFormat Expected copyright and license header (plain text) But there are no examples of how this should be configured. By default headerFormat is empty and I cannot find

SonarQube 5.1.1 Read Timed out Error occurs while loading project repositories

不想你离开。 提交于 2019-12-22 09:56:18
问题 While using the sonar runner to analyze the multi module project I frequently get the “Read Timed Out” error. I have Jenkins configured with SonarQube 5.1.1. Our project is kind of web project, we have a couple of sonar plugins for the analysis like web, css, java, findbugs, js, xml and jacoco. If I load the given link "http://172.21.145.84:9000/batch/project?key=webportal&preview=false" from browser it works, but sometimes it takes quite long to load the response data. Can anyone please give

Sonar Lint not in sync with server rules

拥有回忆 提交于 2019-12-20 02:56:35
问题 Sonar Lint 2.0, It's connected to my own Sonar Qube server with no issues reported by the plugin. The issue is that it is not in sync with my server rules. Found those mentioned in the doc for Java but they also seemed not to be all. I wonder if these java rule list are used only when it's not connected to any server only. Does it have a restriction of what rules to use or synchronize when using a remote server? What exactly we can do to make it synch if it is possible. Plateform: Java

SonarQube “Insufficient privileges”

落爺英雄遲暮 提交于 2019-12-20 02:52:59
问题 A lot of our build jobs fail at the moment as of the "Insufficient privileges" problem since the update to 5.x. The problem should be fixed in SonarQube 5.1 as stated in here but either it is in fact not fixed or there is another problem with the same error as we currently run SonarQube 5.1.1. Here's an example of the error message: 08:27:13 [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project server: Fail to decorate 'org.sonar.api.resources

Error in SonarQube when launching svn blame

与世无争的帅哥 提交于 2019-12-17 18:40:04
问题 I recently upgraded my SonarQube server from 4.5.2 to 5.0.1, then to 5.1 (see edit below). Suddenly, the analysis of a multi-module Maven project failed with the following error : [INFO] [12:02:05.045] Sensor SCM Sensor... [INFO] [12:02:05.169] SCM provider for this project is: svn [INFO] [12:02:05.169] Retrieve SCM blame information... [INFO] [12:02:05.185] 650 files to be analyzed [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO]

Quality Gate periods (SonarQube 5.4)

好久不见. 提交于 2019-12-14 00:33:48
问题 We want to upgrade our SonarQube Server from the 5.0 version to the current 5.4. We imported our Quality Profiles, and had to set the Quality Gates manually (we found no way to do that automatically). Now I have the problem, that i cant use the Value Δ since previous analysis , only "Value" and "Leak". We have to use this property, because our company have large projects with legacy Code. Does anyone know, what happened with this Property? 回答1: Since SonarQube 5.4 the only Differential Period

Sonar rest API insufficient privileges

自作多情 提交于 2019-12-13 01:48:56
问题 I can't access most of the Sonar API, for example localhost:9000/api/tests/show?key=htmlparser:/src/test/java/HtmlParserTest.java or see api/sources/scm. api/server/system and some other general stuff works but nothing where I actually see the code. I always get a {"errors":[{"msg":"Insufficient privileges"}]} I set the project permissions to let anyone see source code & browse the porject, I tried it with Postman, a Java HttpRequest, the command line ... curl -u admin:admin localhost:9000

Setting C# 6.0 rules in SonarQube 5.1

廉价感情. 提交于 2019-12-12 03:32:33
问题 I installed SonarQube version 5.1 and running it against C# code. The results of the analysis were quite OK, but i was expecting that Sonar would point out the issues based on the latest C# 6.0( which is current now) features too, which seems missing. Can anyone let me know if i can add new C#6.0 features in some sort of plugin? I am not sure if i can add custom rules for C#, as i couldn't find in their website for c#( found here- http://docs.sonarqube.org/display/DEV/Writing+Custom+Rules