Template for a good bug report:
Sonarqube Version 5.6.4 , Sonarscanner msbuild
Problem - MSBuild fails when we run in between begin analsyis and end analysis
steps to reproduce
Begin analysis msbuild.exe
MsBuild using 15.0 using solution file
End Analysis
MSBuild analysis fails if there is error keyword in some of the files
The current version of SonarQube is 7.2.1, and the current LTS is 6.7.4. You’re going to have a hard time finding support for any version before that. You should consider upgrading at your earliest convenience.
It’s possible that other rules are affected as the issue really lies in the underlying stacks (including in microsoft roslyn stack itself!). All in all the only reasonable course of action here is to upgrade to latest versions, where this issue has already been resolved as discussed.