Report analysis failures in the SonarQube UI

During analysis failures are sometimes reported in analyzing the file (e.g. Failed to parse file:///D:/a/100/s/AVT.Web/Views/Report/Report.cshtml, line 11, At-rule without name").
These errors now remain in a build log which is sometimes 10K lines or longer and often not looked at, as build success is reported.

Why not add these failures in the SonarQube UI, so it becomes clear which files have not been correctly analyzed? Either a separate menu item, or part of code. As it potentially could cause issues and is now a nice workaround if you want SonarQube to not analyze your file.


The “Track parsing failures” rule (S2260) has been implemented for:
APEX, C, C++, Cobol, Flex, Go, Java, JavaScript, Kotlin, Objective-C, PHP, PL/I, PL/SQL, Python, RPG, Ruby, Scala, Swift, T-SQL, VB6, XML.

Just enable it in your profile and I think you’ll find it meets your needs.