sonarqube-5.0

New code coverage metrics not returning values from SonarQube 5.3 API

怎甘沉沦 提交于 2019-12-08 13:14:46
问题 I need to fetch unit test coverage data for new code changes via the api. The metrics. I can see the data in SonarQubeDashboard but the api is not returning any values for the metrics like: new_coverage new_line_coverage (etc) I am invoking the api : https:///api/resources?format=json&metrics=ncloc,line_coverage,new_line_coverage Even the Public Nemo Instance does not return these metric values: https://nemo.sonarqube.org/api/resources?format=json&metrics=ncloc,line_coverage,new_line_coverage

How to exclude/ignore referenced project(s) analysis from SonarQube

回眸只為那壹抹淺笑 提交于 2019-12-08 09:35:24
问题 I have a solution which has three projects (X,Y,Z). Z referenced in Y , Y in X . When I start Analysis with MSBuild SonarQube Runner on project X, it is analyzing Y and Z as well. Do we have any solution for ignoring recursive analysis ? Note: I can not breakup solution file into multiple solution files & refer dll's rather than projects. 回答1: you can add the tag into ProjectReference 'Y' of your project 'X' configuration. <PropertyGroup Condition=" $(ProjectGuid) != '' AND $(SonarQubeExclude

New Msbuild Sonar runner is skipping analysis for .net projects

浪尽此生 提交于 2019-12-08 04:25:56
问题 I have setup new Msbuild sonar runner and kickoff analysis for a project type "class library". It went successful. To test it further, I have created one more project which has only one file with 5 Interface definitions. I made sure that names of interfaces NOT started with letter 'i'. I created a quality profile with one stylecop rule i.e. "Interface names must begin with i". I started cmd prompt (VS command prompt) and change it's path to the directory which has .csproj file. Clearly I am

How to skip a sub module in a sonar analysis in a multi module java project

杀马特。学长 韩版系。学妹 提交于 2019-12-06 19:05:54
问题 I have a multi module Maven project. I need to exclude one of the sub module from sonar anlaysis. I run the mvn sonar:sonar from parent directory. Is there a way to specify the exclusions in pom file or do we need to configure it in sonar qube. 回答1: From the documentation: You can either: define property <sonar.skip>true</sonar.skip> in the pom.xml of the module you want to exclude use build profiles to exclude some module (like for integration tests) use Advanced Reactor Options (such as "

New Msbuild Sonar runner is skipping analysis for .net projects

亡梦爱人 提交于 2019-12-06 14:41:17
I have setup new Msbuild sonar runner and kickoff analysis for a project type "class library". It went successful. To test it further, I have created one more project which has only one file with 5 Interface definitions. I made sure that names of interfaces NOT started with letter 'i'. I created a quality profile with one stylecop rule i.e. "Interface names must begin with i". I started cmd prompt (VS command prompt) and change it's path to the directory which has .csproj file. Clearly I am NOT at .sln file level. precisely one more level down where we can see .csproj file. Fired Begin -

How to skip a sub module in a sonar analysis in a multi module java project

巧了我就是萌 提交于 2019-12-05 00:21:04
I have a multi module Maven project. I need to exclude one of the sub module from sonar anlaysis. I run the mvn sonar:sonar from parent directory. Is there a way to specify the exclusions in pom file or do we need to configure it in sonar qube. David RACODON - QA Consultant From the documentation : You can either: define property <sonar.skip>true</sonar.skip> in the pom.xml of the module you want to exclude use build profiles to exclude some module (like for integration tests) use Advanced Reactor Options (such as "-pl"). For example } mvn sonar:sonar -pl !module2 来源: https://stackoverflow.com

importing javascript xml junit tests to SONAR using jstestdriver fails

时间秒杀一切 提交于 2019-12-04 00:17:36
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. Where I am stuck? I need your help/expert guidance on importing Javascript test results to SONAR. I

SonarQube: Change the elastic search client host

风格不统一 提交于 2019-11-29 16:50:59
In brief : Is there a way of changing the target address within the elastic search client used by SonarQube? More Info : I'd love to use SonarQube > 4.1 on OpenShift. Unfortunately, you can't bind to localhost in that environment. So these guys changed the service wrapper to piped mode and used the sonar.web.host property to set up SonarQube 4.0. Starting with SonarQube 4.1 we'll also have the elastic search server that tries to bind to localhost, which leads to a crash at startup. But there's no such thing as a sonar.search.host property (similar to sonar.search.port ), is there? As a

Error in sonar startup, Unable to start JVM: No such file or directory (2)

こ雲淡風輕ζ 提交于 2019-11-29 00:41:17
问题 I am facing strange issue with sonarqube 5.0.1 , one one of the machine it is not starting. Here is the error log - sonar.log - --> Wrapper Started as Daemon Launching a JVM... Unable to start JVM: No such file or directory (2) JVM exited while loading the application. JVM Restarts disabled. Shutting down. <-- Wrapper Stopped Machine is x86_64 GNU/Linux - Centos 5.1. this box has java installed - $java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java

SonarQube: Change the elastic search client host

孤街浪徒 提交于 2019-11-28 11:07:40
问题 In brief : Is there a way of changing the target address within the elastic search client used by SonarQube? More Info : I'd love to use SonarQube > 4.1 on OpenShift. Unfortunately, you can't bind to localhost in that environment. So these guys changed the service wrapper to piped mode and used the sonar.web.host property to set up SonarQube 4.0. Starting with SonarQube 4.1 we'll also have the elastic search server that tries to bind to localhost, which leads to a crash at startup. But there