Examples of errors detected by the V3035 diagnostic
V3035. Consider inspecting the expression. Probably the '+=' should be used here.
Lucene.Net
V3035 Consider inspecting the 'substCount =+ 2' expression. Probably '+=' should be used here. Contrib.Analyzers GermanStemmer.cs 224
protected virtual void Substitute(StringBuilder buffer)
{
....
if ((c < buffer.Length - 2) && buffer[c] == 's' &&
buffer[c + 1] == 'c' && buffer[c + 2] == 'h')
{
buffer[c] = '$';
buffer.Remove(c + 1, 2);
substCount =+ 2;
}
....
}
Correct version: substCount += 2;