Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 391 Bytes

no-unused-expression.md

File metadata and controls

13 lines (7 loc) · 391 Bytes

Pattern: Unused expression or function call

Issue: -

Description

Disallows unused expressions - statements which are not assignments or function calls (and thus usually no-ops).

Rationale: Detects potential errors where an assignment or function call was intended.

Further Reading