Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 272 Bytes

chained-comparison.md

File metadata and controls

19 lines (12 loc) · 272 Bytes

Pattern: Missing use of chained comparison

Issue: -

Description

Emitted if a boolean operation can be simplified by chaining some of its operations.

Example of incorrect code:

a < b and b < c

Example of correct code:

a < b < c