Examples of errors detected by the V3088 diagnostic


V3088. The expression was enclosed by parentheses twice: ((expression)). One pair of parentheses is unnecessary or misprint is present.


.NET Core Libraries (CoreFX)

V3088 The expression was enclosed by parentheses twice: ((expression)). One pair of parentheses is unnecessary or misprint is present. IsolatedStorageFile.cs 839


private bool ContainsUnknownFiles(string directory)
{
  ....
  return (files.Length > 2 ||
    (
      (!IsIdFile(files[0]) && !IsInfoFile(files[0]))) ||
      (files.Length == 2 && !IsIdFile(files[1]) && !IsInfoFile(files[1]))
    );
}


Bugs Found

Checked Projects
355
Collected Errors
13 303