sonarqube

Setting C# 6.0 rules in SonarQube 5.1

廉价感情. 提交于 2019-12-12 03:32:33
问题 I installed SonarQube version 5.1 and running it against C# code. The results of the analysis were quite OK, but i was expecting that Sonar would point out the issues based on the latest C# 6.0( which is current now) features too, which seems missing. Can anyone let me know if i can add new C#6.0 features in some sort of plugin? I am not sure if i can add custom rules for C#, as i couldn't find in their website for c#( found here- http://docs.sonarqube.org/display/DEV/Writing+Custom+Rules

How can I use SonarQube to scan an ASPNET Core 1.1 project?

Deadly 提交于 2019-12-12 03:31:33
问题 I have my Mac setup with Jenkins and SonarQube and Docker to test automation. I also have the same setup on my Windows VM using VMWare and all the windows variants as well. My .NET application compiles well and I can run SonarQube after pulling from GitHub and running MSBuild.exe against it fine. But how can I do a similar process with the 'dotnet restore', 'dotnet publish' on my Mac with the .NET Open Source projects like ASPNET Core 1.1? I have not seen how to setup SonarQube to scan the

Sonarqube with smalll medium large test org

泄露秘密 提交于 2019-12-12 03:30:06
问题 I am trying to apply sonarqube analysis to our system. The system is roughly laid out in multiple modules. We have some small and medium tests in each module - and hope to create large tests in the future. We are trying to use "Google" test naming. Sonarqube seems to refer to unit and integration (roughly equivalent to small and medium in our environment). I'm wondering if anyone knows a simple way to modify the labeling to better match what we are trying to setup. 回答1: This is not possible

Generate Sonar Report in XML and CSV file Format

徘徊边缘 提交于 2019-12-12 03:27:27
问题 I am using SonarQube 6.4 and I want to generate the report in XML and CSV format. Can anybody tell me how to do that ? 回答1: There is no native functionality in SonarQube to generate the kind of reports you want. If you really have to have this, you'll need to cobble it together yourself with the results of the web services. Note that there are some hard-coded limits on the volume of results you can pull from those services, so you won't be able to use them to dump the entire DB. 来源: https:/

Running SonarQube on Solaris using Jsvc

北城余情 提交于 2019-12-12 03:25:41
问题 The SonarQube 5.0 documentation states that in order to install SonarQube on AIX, HPUX or Solaris, one must install Java Service Wrapper, which is licensed software. Is it possible to do this using some free/open source alternative? There's a Jsvc library by Apache that is used to accomplish the same functionality. I wonder if anyone has successfully managed to use it. 回答1: We haven't documented it yet, but with SonarQube 5.0+, you can start SonarQube using a simple Java process. Just open a

SonarQube service not starting

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:25:20
问题 We are seeing below error while starting SonarQube service. Looks like there is a duplicate entry while registering Quality Profile but I am not sure on the table. Since the service is not started, we cannot verify it from web. Can someone please advise. The issue occurred post creation of a new DB and copy of tables data from old DB. We are performing this to check new collation which is required for Sonar. 2016.04.26 15:41:53 INFO web[o.s.s.s.RegisterDebtModel] Register technical debt model

Adding jacoco integration tests coverage for Sonar

◇◆丶佛笑我妖孽 提交于 2019-12-12 03:24:38
问题 Background: I have 2 separate java projects, call them A and B. Project A is the actual product (war application), with unit-tests. Gradle builds the project and then runs sonar analysis, and I can see the unit-tests coverage in Sonar. Project B is an integration test for the first project. It is run by Jenkins in a pipeline after building project A and deploying it on an integration-environment. The deployment also involves instrumenting the code so that the jacoco-it report will correlate

How can I change the working directory of MSBuild.SonarQube.Runner.exe?

寵の児 提交于 2019-12-12 03:23:42
问题 We are currently calling the runner like this: D:\BuildTools\MSBSonarQubeRunner-1.0.2\MSBuild.SonarQube.Runner.exe begin /k:"someKey" /n:"someName" /v:"someVersion" /d:sonar.resharper.cs.reportPath="K:\somePath\resharper.xml" We want to have the output of sonar in K:\.sonarqube We tried to use the command line arg /d:sonar.working.directory=K:\\.sonarqube but that didn't work. We also tried setting the working directory in the SonarQube.Analysis.xml like this: <Property Name="sonar.working

SONARQUBE editor tab in eclipse shows nothing

本秂侑毒 提交于 2019-12-12 03:19:54
问题 I have an java ejb project in my local drive.In the base directory i created sonar-project.properties file. After i started sonarqube in localhost:9000, I opened a command prompt and go to base directory and execute command sonar-runner. Project was successfully analyzed in localhost:9000. Then I open eclipse and use the same project location as my workspace. When I associate this project with server running on localhost:9000 and do analyze, eclipse issue tab shows nothing. Also it does not

BuildBreaker Does not fails in issues and preview mode but fails in publish mode - SonarQube5.6.1

那年仲夏 提交于 2019-12-12 03:03:53
问题 I am using Buildbreaker2.4 plugin in sonarQube5.6.1. When i run the below command, mvn sonar:sonar -Dsonar.issuesReport.html.enable=true -Dsonar.analysis.mode=publish Buildbreaker fails with critical issues But when i run any of the below two commands, it gets passed. mvn sonar:sonar -Dsonar.issuesReport.html.enable=true -Dsonar.analysis.mode=issues mvn sonar:sonar -Dsonar.issuesReport.html.enable=true -Dsonar.analysis.mode=preview Suggest me on what might be the problem. 回答1: for fail in