perltidyrc 1.1 KB

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