checkNegatedBoolean

Checks if there are no variables that have negated boolean names such as notValid, is_not_ok. Using such variables in conditional expressions can be confusing and difficult to read and therefore, this check may be enabled. This check reports variables with names that:

  • Start with not or Not followed by anything that is not a lowercase character.
  • Start with not_ or NOT_.
  • Contain _not_ or _NOT_.

Exemption tag: %@ok<NEGBO>