sonarqube

Sonarqube + Cucumber + Gradle

断了今生、忘了曾经 提交于 2019-12-25 08:14:55
问题 Whenever I try to run ./gradlew sonarqube I get the following message: Scenario: This is a test # sample/helloworld/readycheck.feature:3 Given This is my first step # StepDefinitions.This_is_my_first_step() When This is my second step # StepDefinitions.This_is_my_second_step() Then This is my third step # StepDefinitions.This_is_my_third_step() 1 Scenarios (1 passed) 3 Steps (3 passed) 0m0.221s sample.helloworld.ReadyCheckTest > testDoGet STANDARD_OUT Checking ready status... Returing ready

SonarQube 5.6 FileNotFound exception during AST Scan

天涯浪子 提交于 2019-12-25 08:07:12
问题 During the AST Scan, I get a FileNotFoundException looking for a symbols-34.pb file: ERROR: Error during SonarQube Scanner execution org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : '/workingDir/src/main/java/package/JavaFile.java' at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:93) at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:67) at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:133) at org.sonar.java.JavaSquid.scan

SonarQube MSBuild runner fails on deactivated rule

允我心安 提交于 2019-12-25 07:53:14
问题 SonarQube MSBuild runner fails if I deactivate FxCop rule in quality profile: Unable to find the rule key corresponding to the rule config key 'CA1305' in in repository "fxcop". I've bulk-added all the fxcop rules. Added a project. Then then deactivated some rules in quality profile and tried to analyze new project. Even there was NOT any violations of this rule in code - runner still fails with this weird error. 回答1: I suspect that you are somehow importing an FxCop report that contains

Class 'XXX/XXX/XXX ' is not accessible through the ClassLoader warning in Sonar analysis with Jenkins build and maven project

纵饮孤独 提交于 2019-12-25 07:22:45
问题 I know it's recurent question but I couldn't find a solution to my issue. In JENKINS , I run a SONAR analysis after the build. When Soanar gets to Java bytecode scan... it displays : WARN - Class '.../.../.../...' is not accessible through the ClassLoader . The scan is on a Maven project, and Sonar keeps displayin this message throw many other classes that uses Maven dependancies . The Sonar analysis is using the SONAR-RUNNER . I saw in many posts, that the issue could be fixed by adding

sonarqube: why are background tasks only viewable by admins?

二次信任 提交于 2019-12-25 07:09:27
问题 We are testing an upgrade to Sonarqube5.3 and are having some of the issues identified in other StackOverflow posts, such as the Cobertura interactions. The problem I have is that I am not an administrator for the test server, so I can't look at the background tasks to find out why they are failing. Is there a way that the background task results can be printed in the sonar analysis logs? And is there a way to get the analysis in the build not to generate an exception when the background task

Displaying C# compilation warnings in Sonar?

孤者浪人 提交于 2019-12-25 06:07:41
问题 We use Sonarqube for displaying source health, and we have the FxCop integration working and showing the appropriate messages. However, I can't seem to find any way to also have Sonar show warnings as a rule violation? (CS0169, CS0067, CS1591, etc) I see many of the CAxxxx rules, but nothing for the CSxxxx rules? Is there something I'm missing? Is it at all possible to show compilation warnings on our page? 回答1: Thank you for this good feedback. Compiler warnings are not yet supported by the

Azure VM Fails to Connect to Azure SQL Service

空扰寡人 提交于 2019-12-25 05:10:04
问题 I am receiving the below SSL error from a SonarQube service I'm running on an Azure VM using an Azure SQL Server instance that is defined separately in the Azure Portal (and not within the VM). Is there some configuration I'm missing around the SSL certificate setup? I am able to connect to this database from my local PC. java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.'). at org.sonar.db

Unable to run analysis on SonarQube 5.1

情到浓时终转凉″ 提交于 2019-12-25 03:32:45
问题 When I run mvn sonar:sonar for my project I keep getting this error: [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project prova: SonarQube 5.1 does not support Maven 3 [ERROR] -> [Help 1] SonarQube log (the one located in /opt/sonar/logs) is clear and doesn't show any error. I suppose it's a configuration error but i can't figure out how to solve it. I am running SonarQube 5.1 64bit, maven 3.1.1 and java1.8.0_45-b14 on Ubuntu 14.04 64bit [EDIT

Sonar Runner does not use properties of sonar-project.properties

和自甴很熟 提交于 2019-12-25 02:55:40
问题 I am using SonarQube Runner 2.4 at jenkins since today but the analysis fail with the message: SonarQube Runner 2.4 Java 1.7.0_51 Oracle Corporation (64-bit) INFO: Runner configuration file: /.jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/Sonar_Runner_2.4/conf/sonar-runner.properties INFO: Project configuration file: NONE INFO: Default locale: "en_US", source code encoding: "ISO-8859-1" (analysis is platform dependent) INFO: Work directory: /.jenkins/workspace/Sonar/.sonar INFO:

How to change Sensor name of self developed Sonar plugin in Jenkins

北城以北 提交于 2019-12-25 02:47:15
问题 after a while now I finished the development of my own SonarQube plugin nearly. How my plugin works and what it does is is not important so far. I just want to change one last thing. How can i modify the name of my Sensor? I mean that one which is shown in Jenkins (my build environment) when the Sensor gets used. I want to show there only "Sensor ProjectKeyChecker..." or something like that if it possible :) Here is an example output of Jenkins: [INFO] [15:12:27.723] Sensor org.sonar.plugins