sonarqube

SonarQube 5.0.1 won't start

我们两清 提交于 2019-12-13 01:29:29
问题 System is a Linux-x86-64. We have SonarQube 4.0 running but can't run any version above that. We've been trying to get 5.0.1 up and running but it stops after about two seconds. We see this error on the log but are not sure if it's normal: Load native library. One or more attempts may fail if platform specific libraries do not exist. Loading native library failed: libwrapper-linux-x86-64.so Cause: java.lang.UnsatisfiedLinkError: no wrapper-linux-x86-64 in java.library.path Loaded native

SonarQube: Unable to read and import the source file '…/somefile.js' with the charset : 'UTF-8'

可紊 提交于 2019-12-13 00:55:43
问题 I am trying to run SonarQube in Jenkins for my Visual Studio project. But it fails: "Unable to read and import the source file '.../_references.js' with the charset : 'UTF-8'". I read that this might be because there is two or more _references.js files. I tried to exclude SonarQube from analyzing _references.js files but same error. How could I fix this? Or is there some solution to really ignore SonarQube from analyzing _references.js files? SonarQube version is 4.5.4 来源: https:/

Sonar with Groovy project always reports technical debt of 0.0 days

拈花ヽ惹草 提交于 2019-12-13 00:16:07
问题 I'm running Sonar 4.0 and the 0.6 Groovy plugin (latest version). I analyze the project with Sonar Runner 2.3, and the Sonar report gets generated. When I view the report in the Sonar web server, everything looks great, but the technical debt is always reported as 0.0 days, even though there are 2405 issues (including 2 critical and 587 minor). Is anyone else seeing this issue? 回答1: The SQALE model (from which the technical debt is computed) is not yet included in the Groovy plugin. Feel free

project Can not execute Findbugs: java.lang.ArrayIndexOutOfBoundsException

牧云@^-^@ 提交于 2019-12-12 23:03:55
问题 I am using sonarQube4.5.7 version with JDK 1.8 version. currently getting this error on running mvn sonar:sonar command. can anyone suggest me how to resolve this error. Logs are: Unable to get XClass for java/lang/StringBuilder java.lang.ArrayIndexOutOfBoundsException: 26721 At org.objectweb.asm.ClassReader.readClass(Unknown Source) At org.objectweb.asm.ClassReader.accept(Unknown Source) At edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44) At org.objectweb.asm.ClassReader

SonarQube - Unable to load the Wrapper's native library 'wrapper.dll'

与世无争的帅哥 提交于 2019-12-12 21:14:06
问题 I'm installing SonarQube v5.0. I'm running Windows Server 2012 64-bit (a virtual OS), Java 1.8 64-bit, and the SonarQube windows-x86-64 wrapper. SonarQube, whether run via StartSonar.bat using Command Prompt as Administrator or as a Windows Service, keeps throwing the following warning: WARNING - Unable to load the Wrapper's native library 'wrapper.dll'. The file is located on the path at the following location but could not be loaded: C:\sonarqube-5.0.1\bin\windows-x86-64\.\lib\wrapper.dll

Cannot load JDBC driver class 'com.mysql.jdbc.Driver' sonar plugin jenkins

廉价感情. 提交于 2019-12-12 20:51:53
问题 I am using sonar plugin with jenkins. It always generates this error. It seems the plugin can't find the JDBC driver. I tried putting the JDBC driver in many possible places according to the many solutions I found in google, but it still generates this error. C:\Jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\sonar-runner-2.4 SonarQube Runner 2.4 Java 1.7.0_21 Oracle Corporation (32-bit) Windows Server 2008 R2 6.1 x86 INFO: Runner configuration file: C:\Jenkins\tools\hudson.plugins

How to automatically change the Quality Gate?

假如想象 提交于 2019-12-12 20:37:20
问题 We are using Jenkins as our CI server, and Sonarqube for code analysis. Currently we are using SonarQube 4.5.7 and we want to upgrade to version 6.5. We have several quality gates, and we can't find an automatic way to assign the quality gate to the project. In previous version we used the sonar.QualityGate property, but this property is now deprecated. How can we let Jenkins setup the quality gate before it starts the analysis? 回答1: Use the sonar.branch property to run branch the analysis. I

SonarQube exclude Maven module

强颜欢笑 提交于 2019-12-12 20:35:17
问题 I'm running sonar-5.1.2 with Maven / Jenkins CI. After googling and looking through similar questions (most of them are dated back to 2010-2012), it is still not clear how to exclude a particular Maven module from multi-module Maven project. Module Exclusions property is deprecated since version 4.3 and should not be used anymore. We have duplicating packages in different modules: root pom.xml |-module1 |-my.package.com |-module2 |-my.package.com Is it possible to exclude only files from

Configuration of build.xml file for Sonar modules with Ant

醉酒当歌 提交于 2019-12-12 20:24:48
问题 I am setting up a Sonar project (using the delphi plugin), for simplicity sake assume there are two modules I want to report on. Each module is in it's own sub-folder and each has it's own build.xml file. At this point I can successfully run the sonar tasks and generate reports for each module as an independent project. My problem is with configuring the "master" build.xml file. The module build.xml file looks like this: <?xml version="1.0"?> <project name = "CRM" default = "sonar" basedir =

SonarQube 5.2 - where is Libraries / dependencies page?

我的未来我决定 提交于 2019-12-12 18:58:34
问题 In the older version of Sonar, there was a Dependencies or 'Library cartography' page, but I can't seem to find it in 5.2 - anyone know where it might be? http://www.sonarqube.org/sonar-2-1-in-screenshots/ http://docs.sonarqube.org/display/SONARQUBE45/Managing+Libraries The reason/usecase was to have a single location when there may be a library (commons logging like the example, or commons collections when there is a vulnerability for example) to find all projects that contain that