sonarqube

Can I display compiler warnings in Sonar?

跟風遠走 提交于 2020-01-04 09:05:32
问题 Is there a way to include the Java compiler's warnings in SonarQube's analysis and dashboards? I'm running SonarQube via Maven under Jenkins. 回答1: You can follow this thread of discussion: http://sonar.15.x6.nabble.com/Java-compiler-warnings-Generics-td5015634.html 来源: https://stackoverflow.com/questions/18364365/can-i-display-compiler-warnings-in-sonar

Can I display compiler warnings in Sonar?

試著忘記壹切 提交于 2020-01-04 09:05:02
问题 Is there a way to include the Java compiler's warnings in SonarQube's analysis and dashboards? I'm running SonarQube via Maven under Jenkins. 回答1: You can follow this thread of discussion: http://sonar.15.x6.nabble.com/Java-compiler-warnings-Generics-td5015634.html 来源: https://stackoverflow.com/questions/18364365/can-i-display-compiler-warnings-in-sonar

Importing python test run information into sonarqube

≯℡__Kan透↙ 提交于 2020-01-04 06:33:19
问题 I have a python project with structure like this and I'm trying to import it into SonarQube: root sonar-project.properties src test nosetests.xml All test files are in test folder. nosetests.xml is xml report generated with nose(tests) (1.3.7). My sonar-scanner.properties file looks like this sonar.projectKey=python-sonar sonar.projectName=python-sonar sonar.projectVersion=1.0 sonar.sources=src sonar.tests=test sonar.language=py sonar.sourceEncoding=UTF-8 #I want the details so this is false.

How do I get SonarQube to ignore the GlobalSuppressions.cs file?

僤鯓⒐⒋嵵緔 提交于 2020-01-04 05:17:08
问题 I want to exclude the GlobalSuppressions.cs file from SonarQube analysis so that it doesn't look at the System.Diagnostics.CodeAnalysis.SuppressMessage directives in there. These are in the root of each project, but not in the root where the solution is: E.g. I set this in the admin: Namely, **/GlobalSuppressions.cs . There are many projects in each solution, so I would like to avoid referencing each individually if possible. 回答1: My solution to this problem was to use a Powershell script to

Using Sonar MSBuild Runner with /p:IsPackaging=True

断了今生、忘了曾经 提交于 2020-01-04 03:51:44
问题 I've a Visual Studio Team Services build definition containing a Visual Studio Build task surrounded by the Sonar Begin Analysis and End Analysis task. The Visual Studio Build packages a SharePoint provider hosted add-in using the /p:IsPackaging=True property. If this property is set I get the following error from the Sonar Build Runner: 2015-11-27T13:23:05.9534586Z WARNING: Duplicate project GUID: "31ef7995-fdbc-4307-9024-a3d640fdf987". Check that the project is only being built for a single

Using Sonar MSBuild Runner with /p:IsPackaging=True

痴心易碎 提交于 2020-01-04 03:51:12
问题 I've a Visual Studio Team Services build definition containing a Visual Studio Build task surrounded by the Sonar Begin Analysis and End Analysis task. The Visual Studio Build packages a SharePoint provider hosted add-in using the /p:IsPackaging=True property. If this property is set I get the following error from the Sonar Build Runner: 2015-11-27T13:23:05.9534586Z WARNING: Duplicate project GUID: "31ef7995-fdbc-4307-9024-a3d640fdf987". Check that the project is only being built for a single

Sonar reports different line and branch coverage than Idea, Eclipse, Maven and Jenkins

拜拜、爱过 提交于 2020-01-03 17:16:33
问题 I have all those tools reporting the same coverage with JaCoCo: 69% line coverage and 23% branch coverage. Note: Screenshots had been taken over several days so they have slightly different values, but the variance is < 1% Jenkins: Maven: Eclipse: However Sonar reports different values: Maven project is structured as follows: main (aggregator) java module js (node) module You can see the same coverage reported on main and java modules, and no coverage for the js one. I'm using the latest

SonarQube Process exited with exit value [es]: 137

前提是你 提交于 2020-01-03 12:15:10
问题 I want to install sonar on my vps (linux x86_64 debian 9) but when i exec this cdm : ./sonar.sh console i have this following log : Running SonarQube... wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1 | jvm 1 | 2017.12.14 18:45:28 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /etc/sonarqube/temp jvm 1 | 2017

SonarQube Process exited with exit value [es]: 137

和自甴很熟 提交于 2020-01-03 12:15:06
问题 I want to install sonar on my vps (linux x86_64 debian 9) but when i exec this cdm : ./sonar.sh console i have this following log : Running SonarQube... wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1 | jvm 1 | 2017.12.14 18:45:28 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /etc/sonarqube/temp jvm 1 | 2017

How does SonarQube calculate coverage through JaCoCo?

Deadly 提交于 2020-01-03 06:16:28
问题 JaCoCo just outputs jacococ.exec which is the input for Sonar. In that file, there seems to be only the info: - Class name - Total Class Probes - Executed Class Probes But then, SonarQube cannot rely solely on these values as it needs to tell you which are the exact lines unconvered, so Sonar is performing an analysis on itself. So how does it use Jacoco report? And why does it need it? 回答1: So how does it use Jacoco report? And why does it need it? SonarQube itself alone doesn't / can't know