Subject: | --add-semicolons vs. one-line blocks |
We read,
-asc, --add-semicolons
Setting -asc allows perltidy to add any missing optional semicolon at the end of a line which is followed by a closing curly
brace on the next line. This is the default, and may be deactivated with -nasc or --noadd-semicolons.
^^^^^^^^^^^^^^^^^^^^^^
OK, but no consideration is given for:
One-line blocks
If an existing one-line block is longer than the maximum line length, however, it will be broken into multiple lines. When
this happens, perltidy checks for and adds any optional terminating semicolon (unless the -nasc option is used) if the block
is a code block.
In other words the only way a one line blocks will never have their
semicolons added!
I propose "brace on the next line" behavior be changed to "brace on the
same or next line".