-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perltidyrc
34 lines (32 loc) · 1.15 KB
/
.perltidyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# function ptdiff () { perltidy $1 -st | diff -u $1 -; }
# perltidy -npro -pbp --dump-options > pbp
# perltidy -npro --dump-options > def
# perltidy --dump-options > $USER
# colordiff -u0 def pbp
# -npro ignore profile
#Settings suggested from Perls Best Practice
# or just use -pbp
-l=78 # Max line width is 78 cols
-i=4 # Indent level is 4 cols
#-ci=4 # (don't like def=2) Continuation indent is 4 cols
-st # Output to STDOUT
-se # Errors to STDERR
-vt=2 # Maximal vertical tightness
-cti=0 # No extra indentation for closing brackets
-pt=1 # def Medium parentheses tightness
-bt=1 # def Medium brace tightness
-sbt=1 # def Medium square bracket tighteness
-bbt=1 # ?? Medium block bracket tighteness
-nsfs # No space before semicolons
-nolq # Don't outdent long quoted strings
-wbb="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
# Break before all operators
# my prefs
-ce # cuddle elses
-nbbc # don't add blanks before comments
-nbbs # don't add blanks before subs
-nbbb # don't add blanks before blocks
-sot # stack opening token
-nola # no outdent labels
# -lp
# -fnl