Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 641 Bytes

Universal.Operators.DisallowStandalonePostIncrementDecrement.md

File metadata and controls

13 lines (7 loc) · 641 Bytes

Pattern: Malformed in/decrement in stand-alone statement

Issue: -

Description

Disallows the use of post-in/decrements in stand-alone statements. Using pre-in/decrement is more in line with the principle of least astonishment and prevents bugs when code gets moved around at a later point in time.

This rule also discourages the use of multiple increment/decrement operators in a stand-alone statement.

Further Reading