| 1 |
# Perl Best Practices (plus errata) .perltidyrc file |
| 2 |
|
| 3 |
-l=98 # Max line width is 98 cols |
| 4 |
-i=4 # Indent level is 4 cols |
| 5 |
-ci=4 # Continuation indent is 4 cols |
| 6 |
-st # Output to STDOUT |
| 7 |
-se # Errors to STDERR |
| 8 |
-vt=2 # Maximal vertical tightness |
| 9 |
-cti=0 # No extra indentation for closing brackets |
| 10 |
-pt=1 # Medium parenthesis tightness |
| 11 |
-bt=1 # Medium brace tightness |
| 12 |
-sbt=1 # Medium square bracket tightness |
| 13 |
-bbt=1 # Medium block brace tightness |
| 14 |
-nsfs # No space before semicolons |
| 15 |
-nolq # Don't outdent long quoted strings |
| 16 |
-wbb="% + - * / x != == >= <= =~ < > | & **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x=" |
| 17 |
# Break before all operators |
| 18 |
|
| 19 |
# extras/overrides/deviations from PBP |
| 20 |
|
| 21 |
#--maximum-line-length=100 # be slightly more generous |
| 22 |
--warning-output # Show warnings |
| 23 |
--maximum-consecutive-blank-lines=2 # default is 1 |
| 24 |
--nohanging-side-comments # troublesome for commented out code |
| 25 |
|
| 26 |
-isbc # block comments may only be indented if they have some space characters before the # |
| 27 |
|
| 28 |
# for the up-tight folk :) |
| 29 |
-pt=2 # High parenthesis tightness |
| 30 |
-bt=2 # High brace tightness |
| 31 |
-sbt=2 # High square bracket tightness |
| 32 |
|