Hello!
My team and I have recently started trying out SonarQube for nightly static analysis of our codebase. So far we're enjoying using it and finding a few bugs/smells along the way.
This message is just to flag up a small bug I spotted in the code highlighting feature when viewing bugs/smells in context for C# code.
Strings are correctly highlighted, including taking escaped quotes into account, which is great. But it doesn't seem to take into account C#'s verbatim strings!
So the following kind of situation
var myString = @"\";
DoSomething();
....
results in the lines following the verbatim backslash being highlighted as if part of a string, since the backslash has been interpreted as signalling an escaped quote (which would be correct if not for the string being marked verbatim).
This appears to be a wholly superficial (and therefore minor) problem, as the tool is quite happy to report code smells and bugs occurring in what is apparently (according to the highlighter) just a string.
We are using version 6.0.