
+1
Planned
[W510] False positive with string concatenation
String concatenation leads to false positive W510
StringParamProc('A' + 'A'); //[FixInsight Warning] <unit>(<line>): W510 Values on both sides of the operator are equal
In the real life code the param is a delimiter, which is "sLineBreak + sLineBreak"
StringParamProc('A' + 'A'); //[FixInsight Warning] <unit>(<line>): W510 Values on both sides of the operator are equal
In the real life code the param is a delimiter, which is "sLineBreak + sLineBreak"
Customer support service by UserEcho
I have this kind of code here and there:
IntToStr(Random(MaxDiv2) - Random(MaxDiv2));
FloatToStr((Random - Random) * Random(MaxDiv2));
Yes, it looks a bit stupid, but it's used in automated tests to give unexpected values.
But you already can do so by adding //FI:W510 to the line
http://sourceoddity.com/fixinsight/doc.html#suppress
if StartsStr(PathDelim + PathDelim, Full) then
gives the same warning and is definitely no error.
I got the same warning for no error
Could you please also add an exception for
PathDelim + PathDelim ?
(Or am I the only one who works with UNC paths?)