Equals sign alignment
ID | LAYOUT-8 |
Title | Align equals signs within a block of assignments. |
Priority | Recommended |
Severity level | 9 |
Description | Align equals signs within the same block of assignments using proper indentation. |
Rationale | Aligning equals signs improves readability. |
Avoid:
carWeight = 1.7 * 600;
nWheels = 2 + 2;
maximumSpeed = 190;
Instead use:
carWeight = 1.7 * 600;
nWheels = 2 + 2;
maximumSpeed = 190;