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;



Bugs Found

Checked Projects
409
Collected Errors
14 072
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept