sonarqube

XPath rule not working in Sonar 4.4

落爺英雄遲暮 提交于 2019-12-12 02:57:37
问题 reproduce steps: click "Rules" link Search "xpath" click the Java XPath rule that is not deprecated click "create" Fill in "name"/"key"/"Description"/"Message" as "should not use Collections.synchronizedMap" , change status as "ready" , set xpathQuery as //IDENTIFIER[@tokenValue='synchronizedMap'] click "create" button click "edit" and notice "xpathQuery" field is empty which is unexpected. fill the field "xpathQuery" with //IDENTIFIER[@tokenValue='synchronizedMap'] again click "save" button

Mandatory properties missing when migrating to new 2.0 ant task sonar

梦想与她 提交于 2019-12-12 02:54:24
问题 I have a multi module project (with many sub-modules) defined in Sonar and it was working great until i've upgraded sonar to the newer version. My previous settings were: a single parent build.xml that contain all of the general project properties like jdbc connection etc. Also it contained the <sonar:sonar /> task to run Sonar. This parent project does not contain any source / binaries, just the instruction to build the sub-modules. many sub-modules build.xml files that contained only the

ASP .NET and SonarLint

若如初见. 提交于 2019-12-12 02:45:02
问题 We have an ASP .NET project, we are trying to have an on-the-fly analysis of JS. SonarLint only provides the analysis of C# files.. Incremental analysis seems to have been deprecated, and issues analysis requires different configuration files, which SonarQube Scanner does not support. Having 2 different configuration files and continuously renaming them is, as you can imagine, is a very difficult task to convince, educate, and discipline a large team of developers to do.. What would be the

Sonar update 5.0.1 to 5.1: “Can not render widget measure_filter_list” on “Projects” dashboard

故事扮演 提交于 2019-12-12 02:43:59
问题 After successfully running the database upgrade during installation of the Sonar upgrade from 5.0.1 to 5.1, the homepage ("Projects" dashboard) displays an error message. In the log file I see the following "Ruby on Rails" (?) stacktrace: 2016.01.28 14:25:35 ERROR web[rails] Can not render widget measure_filter_list: ActionView::TemplateError (undefined method `to_date' for nil:NilClass) on line #207 of app/views/measures/_display_list.html.erb: 204: <% end %> 205: <% filter.display.columns

Trying to use SonarQube on Jenkins to analyze project, but Jenkins using JDK 1.7 and I am getting an unsupported major.minor version error

爷,独闯天下 提交于 2019-12-12 02:38:52
问题 I'm trying to analyze a git project using SonarQube and running that through Jenkins, however the Console Output gives me an error when I try to build. java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/ EnvironmentInformation : Unsupported major.minor version 52.0 Screenshot -> http://i.imgur.com/Jb7Wngu.png Which I have learned means I'm using a higher JDK at compile time than I am at runtime. When I ssh into the machine that is hosting Jenkins and the SonarQube server and

SonarQube - Views Portfolio Plugin - Project vs Filter Motion Chart

十年热恋 提交于 2019-12-12 02:12:37
问题 I completed a POC on View Portfolio plugin using SonarQube (5.1.x)/latest version. Got my trial license for Views Portfolio plugin and created few custom VIEWS, Sub-Views and various Measures. Created custom/shared Dashboards which have various widgets utilizing these views/sub-views / measures that I created above. Everything is working as expected as far as Views Portfolio Plugin or Sonar Qube is concerned. Though I'm bumped by this one issue which is coming in " Project Motion Chart "

sonar ERROR Timeout trying to lock table “PROJECT_MEASURES”; SQL statement:

纵饮孤独 提交于 2019-12-12 01:27:53
问题 I'm using SonarQube 5.1 (using default Database H2) with Gradle 2.3/4. In SonarQube, I'm using a trial version for Views portfolio management plugin which (combines SonarQube project's metrics across as a component and lets you create views like all projects under a given team, department, manager, all app projects, all service projects etc. sonarRunner task is working successfully in Gradle. Once the analysis is done, I have to run another command to pick the latest analysis for "Views

Jenkins/Sonar timeout: Socket closed

好久不见. 提交于 2019-12-12 01:27:12
问题 We have many projects which are basically branches from a master branch Most of them run successfully but few fail randomly with below error. I would appreciate it very much if I can get help on this issue Jenkins ver . 2.32.2; Sonarqube ver 6.2; mysql 5.7 ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] -----------------------------------------------------------

SonarQube: Source is not present in module base directory

人走茶凉 提交于 2019-12-12 01:18:19
问题 We have been executing sonar analysis successfully with SQ-4.5.4 version with no issues. Suddenly since couple days our sonar analysis build is failing with below error message: It is not indexing any source file even though it has found them. We have made no changes in our pom.xml or project structure. I am not sure why it is adding "build/sonar" to base directory path that I have mentioned in pom.xml for project base directory. I tried giving relative path too but still issue is

Sonar-Cobertura custom filters

自作多情 提交于 2019-12-12 01:04:21
问题 I am using sonar in my project through sonar-maven plugin . I am using Cobertura plugin for code coverage analysis. I want to exclude some modules/classes from code coverage report. How can I do it? Thanks in advance. 回答1: You can use the sonar.coverage.exclusions to not report coverage of some files of your project. You can find this property in the project settings, in the "Exclusions > Code Coverage" category. 来源: https://stackoverflow.com/questions/16014201/sonar-cobertura-custom-filters