will_ has asked for the wisdom of the Perl Monks concerning the following question:
...would look better like this (I disagree):sub discover { return [ { 'name' => $name, 'version' => $VERSION, } ]; }
It's indenting the hash keys twice, presumably because there are two opening tokens. I'm using -sot "stack opening tokens".sub discover { return [ { 'name' => $name, 'version' => $VERSION, } ]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perltidy indents too much when there are stacked opening tokens
by LanX (Saint) on Oct 21, 2014 at 01:07 UTC |