SonarQube for MSBuild - End Analysis: Error during SonarQube Scanner execution Line out of range in the file

☆樱花仙子☆ 提交于 2020-01-06 15:17:23

问题


##[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 5.6.5 version and MSBuild 14. Sonar is running as Windows Service. If I exclude this controller then same error comes for other random controller. If I exclude all controllers but keep one or two for which unit tests are written then error goes away but the coverage is shown as 0,0%.


回答1:


I am able to fix this issue after removing Microsoft Build Tools 2015 and Visual studio Enterprise 2015 with Updates 2015 from TFS Build server and reinstalling it again.



来源:https://stackoverflow.com/questions/42322504/sonarqube-for-msbuild-end-analysis-error-during-sonarqube-scanner-execution-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!