Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

AssignmentInConditionalCheck

Marco Otte-Witte edited this page Jun 27, 2013 · 3 revisions

This check reports conditionals that test an assignment as in

something(var) if var = method()

Assignments in conditions are often typos.

Applies to

  • if
  • else
  • while
  • until