Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: A refactoring trap

by demerphq (Chancellor)
on Aug 17, 2005 at 09:06 UTC ( #484346=note: print w/replies, xml ) Need Help??

in reply to Re^2: A refactoring trap
in thread A refactoring trap

In fact, I've committed my .perltidy.rc file to the code base to ensure that programmers who follow me will find it easy to at least maintain consistent formatting.

Thats a very interesting idea. Id almost like to see your perltidy.rc posted here, along with any others that folks might like to contribute. I think it would be an interesting addition to the site.


Replies are listed 'Best First'.
Re^4: A refactoring trap
by Ovid (Cardinal) on Aug 18, 2005 at 23:29 UTC

    Taken straight from Damian's book:

    -l=78 # max line width is 78 columns -i=4 # indent level is 4 columns -ci=4 # continuation indent is 4 columns -st # output to STDOUT -se # errors to STDERR -vt=2 # maximal vertical tightness -cti=0 # no extra indentation for closing brackets -pt=1 # medium parenthesis tightness -bt=1 # medium brace tightness -sbt=1 # medium square bracket tightness -bbt=1 # medium block brace tightness -nsfs # no space before semicolons -nolq # don't outdent long quoted strings -wbb="% + - * / x != == >= <= =~ < > | & >= < = **= += *= &= <<= &&= - += /= |= >>= ||= .= %= ^= x=" # break before all operators


    New address of my CGI Course.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://484346]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2020-09-27 20:13 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (142 votes). Check out past polls.