sonarqube

Why do Jacoco excludes java classes?

余生颓废 提交于 2019-12-25 02:46:29
问题 I'm running the command mvn sonar:sonar . Here's the output from Jenkins: [JaCoCo plugin] Source Inclusions: **/*.java [JaCoCo plugin] Source Exclusions: [JaCoCo plugin] - <PATH>/workspace/<MODULE1>/src/main/java 10 files [JaCoCo plugin] - <PATH>/workspace/<MODULE2>/src/main/java 1 files [JaCoCo plugin] - <PATH>/workspace/<MODULE3>/src/main/java 65 files [JaCoCo plugin] - <PATH>/workspace/<MODULE4>/src/main/java 5 files [JaCoCo plugin] - <PATH>/workspace/<MODULE5>/src/main/java 64 files Why

Sonar Analysis Fails with error Unable to evict preview database in 4.3.2 following schema migration

Deadly 提交于 2019-12-25 02:44:47
问题 We migrated our oracle 11.2 schema to new oracle 11.2 DB server. On running analysis on sonarqube 4.3.2 against new schema fails with following error. In addition the Server ID is shown as empty in GUI though there is a entry for field sonar.core.id in DB. Not able to generate ID as well. Not sure if this si related. Unable to evict preview database: /batch_bootstrap/evict?project=724277: Fail to execute request [code=500, url=http://pchiroadmap01.lnx.in.here.com:9000/batch_bootstrap /evict

sonar build stability plugin gives 403 forbidden error for sonarqube version 3.1.1

你。 提交于 2019-12-25 02:37:10
问题 My configuration is SonarQube 3.1.1, Build Stability plugin 1.2, Jenkins 1.467 I have configured the settings for the build stability plugin at the project level as mentioned at http://docs.codehaus.org/display/SONAR/Build+Stability+Plugin Console output for this analysis has the following error for this plugin : > [INFO] [05:17:18.108] CI URL: Jenkins:http://<host>/job/<job-name>/ > > [ERROR] [05:17:18.702] Received 403 when trying to access > http://<host>/job/<job-name>//lastBuild/api/xml/

When running Stylecop in Sonar, how do I make it analyze projects identified as test projects?

可紊 提交于 2019-12-25 02:09:47
问题 Ok, so let's assume that I want to live according to the rule, treat your test code as carefully as your production code. How do I make Sonar and Stylecop analyze my test projects? I've basically written this in my sonar-project.properties file: #Core C# Settings sonar.dotnet.visualstudio.solution.file=SomeSolution.sln sonar.dotnet.excludeGeneratedCode=true sonar.dotnet.version=4.0 sonar.donet.visualstudio.testProjectPattern=*.Tests #StyleCop sonar.stylecop.mode= Reading the sonar build log I

running nunit tests (x86) with gallio

淺唱寂寞╮ 提交于 2019-12-25 01:46:17
问题 I am trying to run nunit tests with gallio. These tests run with nunit-console-x86.exe When I run them with nunit-console.exe, I am getting System.BadImageFormatException Running with Gallio.Echo.exe (installed the x86 bundle from gallio.org), I am getting the same exception. Is there a way to get gallio to use the nunit-console-x86.exe? I am running the command "C:\Program Files (x86)\Gallio\bin\Gallio.echo.exe" /r:IsolatedProcess "C:\projectdata.Tests.dll" and I am getting this exception:

How can I file an issue for SonarQube Eclipse plugin

℡╲_俬逩灬. 提交于 2019-12-24 22:05:23
问题 I went here but cannot see any means of reporting an issue: https://jira.codehaus.org/browse/SONARIDE The issue is that SonarQube plugin in Eclipse stops working when project is configured as "Groovy Project" and DSL jar is added to classpath. The Sonar run crashes with message saying that it cannot find the Groovy DSL jar in "{build folder}\C:\Users....", which makes no sense - why the hell is it treating an absolute path as relative. 回答1: You can't create issue in JIRA by yourself. We

'Wrong CSFR in request' when running sonarqube behind a secure reverse proxy

99封情书 提交于 2019-12-24 21:23:13
问题 Dear sonarqube community, we have set up sonarqube behind an apache2 secure (ssl) reverse proxy. Normal access works fine but privileged actions lead to the following error: 2017.12.19 08:26:02 DEBUG web[AWBtqc1RcFsQ/x1cAAAx][auth.event] login failure [cause| Wrong CSFR in request ][method|JWT][provider|LOCAL|local] [IP|xxx.xxx.xxx.xxx|yyy.yyy.yyy.yyy][login|admin] sonarqube runs at '/sonar' and the apache configuration looks like this: ... ProxyPreserveHost On AllowEncodedSlashes NoDecode ..

Not able to compile with sonar:sonar

▼魔方 西西 提交于 2019-12-24 21:00:26
问题 I am using Sonar to generate code review reports of my project. But I am not able to start the server. Output from mvn sonar:sonar: 回答1: [ERROR] SonarQube server [http://localhost:9000] can not be reached Your are getting above error. Please check if the server is up 回答2: reading [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project risks: Unable to execute SonarQube: Fail to get bootstrap index from server: Status returned

Analyze project with SonarQube web api

南楼画角 提交于 2019-12-24 20:36:05
问题 I created a project using SonarQube web api and now I'm trying to analyze the project. I found this POST api/project_analyses/create_event When I tried this service I got this response { "errors": [ { "msg": "The 'analysis' parameter is missing" } ] } This have two required parameters: name and analysis (analysis key) Where can I get the analysis key? Is it possible to analyze my project with this service? I have also read about I can use the command sonar-scanner but I would rather use the

SonarQube with ReactJS - false positive on duplicates and coverage on new code

試著忘記壹切 提交于 2019-12-24 20:17:00
问题 I'm trying to analyze ongoing ReactJS project using SonarQube (first time with that tool) version 6.7.5 but after second code scan I'm getting Quality Gate failed due to 0% Coverage on New Code and 5% Duplicated Lines on New Code. First problem - I have no clue why I'm getting it at all (no coverage on new code) when I see new code got picked up by SonarQube. It looks like most of functional components are not covered by tests. Second problem - duplicates. Most of them are false positive like