sonarqube5.1

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

Sonar Runner:- INFO: Could not resolve file paths

孤街醉人 提交于 2019-12-07 11:33:53
问题 I am trying to run Sonar Runner through CMD Line and want to scan all data through my Lcov file but after Running sonar Runner and it's showing Error in reading file .I crossed checked each and every path mentioned in file manually and its working fine.But still It's giving me the error as below:- >INFO: Integration Test Coverage Sensor is started INFO: Overall Coverage Sensor is started INFO: Analysing [C:\Tests\lcov.dat] INFO: Could not resolve 67 file paths in [C:\Trunk\lcov.dat], first

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 -

Quality Gate periods (SonarQube 5.4)

為{幸葍}努か 提交于 2019-12-06 13:21:51
We want to upgrade our SonarQube Server from the 5.0 version to the current 5.4. We imported our Quality Profiles, and had to set the Quality Gates manually (we found no way to do that automatically). Now I have the problem, that i cant use the Value Δ since previous analysis , only "Value" and "Leak". We have to use this property, because our company have large projects with legacy Code. Does anyone know, what happened with this Property? Since SonarQube 5.4 the only Differential Period available for Quality Gate conditions is the Leak Period (see 5.4 Upgrade Notes ). The Leak Period can be

Make this line start at column 9 sonar violation fix(Source code should be indented consistently)

戏子无情 提交于 2019-12-06 07:43:38
问题 I am fixing all the sonar violation fix and I have nearly 6k issue like Make this line start at column 9" issues. I tried adding the java formatter, but it did not resolve the issue instead increase my sonar violation to 9k. Can you please let me know which java formatter to use so it will complaint. <plugin> <groupId>net.revelc.code</groupId> <artifactId>formatter-maven-plugin</artifactId> <version>0.5.2</version> <executions> <execution> <goals> <goal>format</goal> </goals> </execution> <

Sonar Runner:- INFO: Could not resolve file paths

烂漫一生 提交于 2019-12-05 14:46:04
I am trying to run Sonar Runner through CMD Line and want to scan all data through my Lcov file but after Running sonar Runner and it's showing Error in reading file .I crossed checked each and every path mentioned in file manually and its working fine.But still It's giving me the error as below:- >INFO: Integration Test Coverage Sensor is started INFO: Overall Coverage Sensor is started INFO: Analysing [C:\Tests\lcov.dat] INFO: Could not resolve 67 file paths in [C:\Trunk\lcov.dat], first unr esolved path: C:\Trunk\Web\App_Themes\Core\AppStart\UserAuth.js" I tried to run my Runner as below:-

SonarQube with C# plugin with MSBuild Runner does not take exclusions

孤街醉人 提交于 2019-12-04 23:45:32
问题 Currently I have an instance of SonarQube 5.1.2 with C# plugin and MSBuild runner in order to analyze a 1.200.000 LOC project. I intend to reduce the classes that are analyzed, I created a sonar.properties file with the line sonar.exclusions=**/Databases/**/*.* but after reading the log from the analysis, files inside the Databases folder were analyzed. following the instructions from Eric Starr, I set this simple exclusion rule in the call of the runner: "C:\sonarqube-5.1.2\bin\MSBuild

WARN web[o.s.s.n.NotificationService] Unable to deliver notification

痞子三分冷 提交于 2019-12-04 12:58:00
I did get this error when I've upgraded from 5.0 to 5.1. It was related to https://jira.codehaus.org/browse/SONAR-4778 . See http://sonarqube.15.x6.nabble.com/WARN-web-o-s-s-n-NotificationService-Unable-to-deliver-notification-td5035238.html for details. It was a bug and it was supposed to be fixed in 5.1.1 with https://jira.codehaus.org/browse/SONAR-6566 as Simon Brandhof stated. Now I've upgraded to 5.1.1 and I'm still having the same problem. 2015.06.09 09:52:48 WARN web[o.s.s.n.NotificationService] Unable to deliver notification Notification{type='issue-changes', fields={new.resolution

SonarQube with C# plugin with MSBuild Runner does not take exclusions

半城伤御伤魂 提交于 2019-12-03 14:20:41
Currently I have an instance of SonarQube 5.1.2 with C# plugin and MSBuild runner in order to analyze a 1.200.000 LOC project. I intend to reduce the classes that are analyzed, I created a sonar.properties file with the line sonar.exclusions=**/Databases/**/*.* but after reading the log from the analysis, files inside the Databases folder were analyzed. following the instructions from Eric Starr , I set this simple exclusion rule in the call of the runner: "C:\sonarqube-5.1.2\bin\MSBuild.SonarQube.Runner.exe" begin /k:MyProject /n:MyProject /v:2 /d:sonar.exclusions="file:C:\codesource

SonarQube: Coverage on New Code never calculated

时光总嘲笑我的痴心妄想 提交于 2019-12-02 11:47:58
问题 I have set up SonarQube, Maven and Cobertura to upload unit test coverage at every build run. I want to use the differential views to get coverage for the delta (new code only). The coverage itself is successfully uploaded, and I can see the delta in lines of code. However, I can't get the "Coverage on new Code" to work. I tried different values for the leak period, including previous_analysis and previous_version (changing the version from 1.0 to 1.1 in the new analysis). I also used -Dsonar