[Bioperl-l] SVN and ...Re: Perltidy

Chris Fields cjfields at uiuc.edu
Mon Jun 18 15:41:28 UTC 2007


On Jun 18, 2007, at 9:54 AM, David Messina wrote:

> [Chris F]
>> Will do.  Maybe something that conforms to PBP; there's a PBP
>> perltidy config on perlmonks, along with some emacs/vim related bits:
>>
>> http://www.perlmonks.org/?node_id=516501
>
>
> FYI, perltidy now has a built-in -pbp flag:
>
> [from perltidy-20070508]
>> -pbp, --perl-best-practices
>> -pbp is an abbreviation for the parameters in the book Perl Best
>> Practices by Damian Conway:
>>
>>     -l=78 -i=4 -ci=4 -st -se -vt=2 -cti=0 -pt=1 -bt=1 -sbt=1 -bbt=1
>> -nsfs -nolq
>>     -wbb="% + - * / x != == >= <= =~ !~ < > | & =
>>           **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x="
>> Note that the -st and -se flags make perltidy act as a filter on
>> one file only. These can be overridden with -nst and -nse if
>> necessary.
>>
> [full docs here: http://search.cpan.org/~shancock/Perl-Tidy-20070508/
> bin/perltidy]
>
>
> Dave

<slaps head>  Makes sense that would eventually be incorporated.

If so there's no need to include a config (unless we want to sway  
away from PBP-style).  We can just recommend everyone use that setting.

chris



More information about the Bioperl-l mailing list