Skip to content

Files

Latest commit

 

History

History
29 lines (18 loc) · 689 Bytes

File metadata and controls

29 lines (18 loc) · 689 Bytes

Pattern: Use of line break before binary operator

Issue: -

Description

Line breaks should occur after the binary operator to keep all variable names aligned.

Example of incorrect code:

Note: Despite being in the anti-pattern section, this will soon be considered the best practice.

income = (gross_wages
          + taxable_interest)

Example of correct code:

Note: Despite being in the best practice section, this will soon be considered an anti-pattern.

income = (gross_wages +
          taxable_interest)

Further Reading