rspec/rules/S3972/description.adoc
2021-01-27 13:42:22 +01:00

2 lines
462 B
Plaintext

Code is clearest when each statement has its own line. Nonetheless, it is a common pattern to combine on the same line an ``++if++`` and its resulting _then_ statement. However, when an ``++if++`` is placed on the same line as the closing ``++}++`` from a preceding _then_, _else_ or _else if_ part, it is either an error - ``++else++`` is missing - or the invitation to a future error as maintainers fail to understand that the two statements are unconnected.