Class | Roodi::Checks::AssignmentInConditionalCheck |
In: |
lib/roodi/checks/assignment_in_conditional_check.rb
|
Parent: | Check |
Checks a conditional to see if it contains an assignment.
A conditional containing an assignment is likely to be a mistyped equality check. You should either fix the typo or factor out the assignment so that the code is clearer.