SonarQube for MSBuild - Final Analysis: Runtime Error SonarQube Scan Line out of range in file

##[error]15:41:48.530 ERROR: Error during SonarQube Scanner execution ##[error]java.lang.IllegalStateException: Line 33 is out of range in the file Controllers/BaseAccessRequestController.cs (lines: 30) 

I am using Sonar version 5.6.5 and MSBuild 14. Sonar runs as a Windows service. If I exclude this controller, then the same error occurs for another random controller. If I exclude all controllers, but save one or two for which unit tests are written, the error disappears and the coverage is displayed as 0.0%.

0
source share
1 answer

I can fix this problem after uninstalling Microsoft Build Tools 2015 and Visual Studio Enterprise 2015 with 2015 updates from the TFS build server and reinstalling it.

0
source

Source: https://habr.com/ru/post/1013187/


All Articles