Skip to content

Files

Latest commit

 

History

History
27 lines (19 loc) · 387 Bytes

Lint-AmbiguousAssignment.md

File metadata and controls

27 lines (19 loc) · 387 Bytes

Pattern: Ambiguous assignment

Issue: -

Description

This rule checks for mistyped shorthand assignments.

Examples

# bad
x =- y
x =+ y
x =* y
x =! y

# good
x -= y # or x = -y
x += y # or x = +y
x *= y # or x = *y
x != y # or x = !y

Further Reading