Skip to content

Files

Latest commit

 

History

History
12 lines (7 loc) · 389 Bytes

increment-decrement.md

File metadata and controls

12 lines (7 loc) · 389 Bytes

Pattern: Missing use of ++/--

Issue: -

Description

By convention, for better readability, incrementing an integer variable by 1 is recommended to be done using the ++ operator. This rule spots expressions like i += 1 and i -= 1 and proposes to change them into i++ and i--.

Further Reading