Issue in running sonarqube analysis

I am running analysis on my .net application using scanner for msbuild 4.3 , Sonarqube version i’m using is 6.7 and it’s having developer license .
Few days back, lines of code has crossed the available limit on my license so , i have deleted a project and now trying to run analysis on the same.
This application has mainly .vb ,.cs and .js files . I have skipped the .js using exclusion in settings .
But when i’m running analysis it’s showing issues only for .cs files and not .vb files .
And when i’m specifying sonar.language as ‘vbnet’ , it’s not showing any analysis report on dashboard.
Why is this happening , what should i do to get reports for .vb files ?
when i’m looking at quality profiles it’s showing vb as used , but when i see in project it’s showing project as ‘C#’ . I’m also attaching the cmd.

INFO: Base dir: C:\Users\Desktop\Development-1
INFO: Working dir: C:\Users\Desktop\Development-1.sonarqube\out.sonar
INFO: Source encoding: windows-1252, default locale: en_US
INFO: Index files
INFO: Excluded sources:
INFO: **/Scripts/.js
INFO: /Ms/
INFO: **/scripts/
.js
INFO: 0 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
INFO: Sensor Analyzer for “php.ini” files [php]
INFO: Sensor Analyzer for “php.ini” files [php] (done) | time=0ms
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=0ms
INFO: Sensor [Deprecated] C# Integration Tests Coverage Report Import [csharp]
INFO: Sensor [Deprecated] C# Integration Tests Coverage Report Import [csharp] (done) | time=0ms
INFO: Sensor C# Unit Test Results Import [csharp]
INFO: Sensor C# Unit Test Results Import [csharp] (done) | time=0ms
INFO: Sensor VB.NET [vbnet]
INFO: Importing 9 Roslyn reports
INFO: Sensor VB.NET [vbnet] (done) | time=365ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=247ms
INFO: Sensor CPD Block Indexer
INFO: Sensor CPD Block Indexer (done) | time=1ms
INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.
INFO: 1 file had no CPD blocks
INFO: Calculating CPD for 23 files
INFO: CPD calculation finished
INFO: Analysis report generated in 15215ms, dir size=5 MB
INFO: Analysis reports compressed in 2106ms, zip size=716 KB
INFO: Analysis report uploaded in 2363ms
INFO: ANALYSIS SUCCESSFUL, you can browse https://sonarqube.##.com/commercial/dashboard/index/#sonarqube INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarqube.##.com/commercial/api/ce/task?id=AWoRfzCHEQOlNkbr4pJQ
INFO: Task total time: 59.446 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:19.446s
INFO: Final Memory: 19M/254M
INFO: ------------------------------------------------------------------------
The SonarQube Scanner has finished
17:51:58.644 Creating a summary markdown file…
17:51:58.659 Analysis results: https://sonarqube.$$$$.com/commercial/dashboard/index/###
17:51:58.66 Post-processing succeeded.

Can anybody please help me with this issue ?
Regards

Hi,

How are you triggering analysis?

 
Ann

Using sonar scanner msbuild 4.3 . Using command lines on solution file path as below :
D:\sonar-scanner-msbuild-4.3.1.1372-net46\SonarScanner.MSBuild.exe begin /key:“projectkey” /v:“1.1” /d:sonar.language=“vbnet”
“C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe” /t:Rebuild
D:\sonar-scanner-msbuild-4.3.1.1372-net46\SonarScanner.MSBuild.exe end

Hi,

As far as I can tell, your build/analyze commands look okay. Does the build actually build your .vb files? Also, sonar.language was deprecated literally years ago, and is removed in 7.7.

 
Ann

Hi Ann ,
In the second command line , it actually builds the solution.
Even when i don’t use sonar.language , it runs analysis for .cs only .
When i use sonar.language = vbnet . it doesn’t show any analysis .
Is this because lines of code limit is over and just deleting that project doesn’t
free that much lines of code once the analysis loc limit is used up ?

hi @Rehan

Before version 7.2 (so it applies with your version 6.7), analysis would stop after the number of LoC is exceeded. You have to delete a project to go below LoC limit (or purchase a bigger license) to be able to re-analyze again .

Starting SonarQube 7.2, the background task will be rejected if the project analysis would cause the LoC count to go above the limit. The behaviour was done to avoid suspending analysis due to LoC limit exceeded