sonarqube

SonarQube, JaCoCo: (11 of 22 conditions) when they are supposed to be 3 (or 4)

一世执手 提交于 2020-01-14 04:36:30
问题 I am lost on how SonarQube calculates conditions covered by tests. Versions of tools used: * JaCoCo 0.8.1 * SonarQube 7.4 This is my groovy code boolean condition1(boolean b1, boolean b2) { !b1 || !b2 } boolean condition2(boolean b1, boolean b2) { b1 || b2 } boolean condition3(boolean b1, boolean b2) { !b1 && !b2 } boolean condition4(boolean b1, boolean b2) { b1 && b2 } boolean condition5(boolean b1, boolean b2) { b1 && !b2 } boolean condition6(boolean b1, boolean b2, boolean b3) { b1 && b2 &

Sonar Scanner engine is not started

风流意气都作罢 提交于 2020-01-13 19:14:10
问题 I follow the instruction at Analyzing with SonarQube Scanner for Ant to analyzing an ant project and got following error: Buildfile: C:\Projects\my-sonar\build.xml [echo] Build properties read from build.properties clean: sonar: [sonar:sonar] Apache Ant(TM) version 1.9.4 compiled on April 29 2014 [sonar:sonar] SonarQube Ant Task version: 2.5 [sonar:sonar] Loaded from: file:/C:/Projects/my-sonar/.ant/lib/sonarqube-ant-task-2.5.jar [sonar:sonar] User cache: C:\Users\test\.sonar\cache [sonar

SonarQube excluding files, directories, and generated code?

北战南征 提交于 2020-01-13 16:26:36
问题 The code base I am working with has a lot of generated code. In addition, there are also some deprecated files that I would want to exclude from SonarQube analysis. I've read up the documentation and looked at some answers on here about that, but it does not help in my case. I have a multi-module maven project. So I have multiple projects in my workspace that are all part of a large application. Say I want to exclude this file: /home/username/workspace/com.mst.rtra.importing.message/bin/com

SonarQube excluding files, directories, and generated code?

非 Y 不嫁゛ 提交于 2020-01-13 16:26:29
问题 The code base I am working with has a lot of generated code. In addition, there are also some deprecated files that I would want to exclude from SonarQube analysis. I've read up the documentation and looked at some answers on here about that, but it does not help in my case. I have a multi-module maven project. So I have multiple projects in my workspace that are all part of a large application. Say I want to exclude this file: /home/username/workspace/com.mst.rtra.importing.message/bin/com

Sonar scanner with Maven and JDK 11

依然范特西╮ 提交于 2020-01-13 10:56:30
问题 I can make Sonar scanner work with OpenJDK 8 but not with OpenJDK 11. The Maven command used is: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json -P ci The build fails with: [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project framework-bio: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0

One of your SonarQube server cannot be reached. Please check your connection settings

感情迁移 提交于 2020-01-13 10:08:28
问题 I am new to Sonar and I am trying to install and configure Sonar in my local system. I have followed the steps mentioned here for installing sonar and integrating it with eclipse, but I can not associate my project with sonar and getting exception One of your SonarQube server cannot be reached. Please check your connection settings. please see the below screen shots, and let me know if i am missing something. Thanks 回答1: I had the same issue just now. What helped me in the end was to test the

One of your SonarQube server cannot be reached. Please check your connection settings

回眸只為那壹抹淺笑 提交于 2020-01-13 10:08:02
问题 I am new to Sonar and I am trying to install and configure Sonar in my local system. I have followed the steps mentioned here for installing sonar and integrating it with eclipse, but I can not associate my project with sonar and getting exception One of your SonarQube server cannot be reached. Please check your connection settings. please see the below screen shots, and let me know if i am missing something. Thanks 回答1: I had the same issue just now. What helped me in the end was to test the

SonarQube analysis succeeds but isn't processed by server

笑着哭i 提交于 2020-01-13 08:11:47
问题 I have recently upgraded our SonarQube server from 5.1.2 to 5.2. We run the analysis using the SonarQube Runner (2.4) via Jenkins and the analysis succeeds. The problem is that the analysis then doesn't get processed by the server. The following error can be seen at the end of the log which is shown for the failed background task: The main error is this: java.lang.UnsupportedOperationException: QualityGate status can not be changed if already set on source Measure I have no idea what this

sonarqube gradle plugin excluding jacoco integration tests

十年热恋 提交于 2020-01-13 03:37:06
问题 I'm trying to integrate the sonarqube gradle plugin with the jacoco plugin: classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.1' apply plugin: 'org.sonarqube' apply plugin: 'jacoco' My build/jacoco folder contains: integrationTest.exec test.exec However, the sonarqube plugin only recognises the 'test.exec' file: 18:20:45.130 INFO - JaCoCoItSensor: JaCoCo IT report not found: C:\Users\abc3\Downloads\sme-letter\target\jacoco-it.exec : 18:05:55.609 INFO - Analysing C:\Users

importing javascript xml junit tests to SONAR using jstestdriver fails

北城余情 提交于 2020-01-12 13:51:54
问题 What I am doing? I am currently working on setting up Continuous integration / delivery pipeline for front end applications. We are planning to use SonarQube as code quality tool and want to import junit test results/code coverage in SONAR for further analysis. I was able to successfully import javascript code coverage report to SONAR. We are using Gulp / Karma / PhantomJS / Jasmine etc and using Karma coverage / Junit reporters to generate test results. Junit test file name is TEST-xunit.xml