Subject: | Anonymous subs with signatures formatted incorrectly |
Hi, Steve.
I found, that anonymous sub with signature, which contains more, than 2 arguments, is formatted incorrectly. Please, look at the example:
get(
on_ready => sub ($worker) {
$on_ready->end;
return;
},
on_exit => sub ( $worker, $status )
{
return;
},
on_data => sub ($data) {
$self->_on_data(@_) if $self;
return;
}
);
"on_exit" sub has unwanted line break before "{". Is it possible to avoid this somehow?
Perl::Tidy arguments used:
--perl-best-practices
--tight-secret-operators
--continuation-indentation=2
--maximum-line-length=0
--format-skipping
--format-skipping-begin="# <<<"
--format-skipping-end="# >>>"
--converge --nostandard-output
--character-encoding=utf8