Skip to content
This repository
Browse code

add .perltidyrc file

  • Loading branch information...
commit 8068f16c3c0ab7ed259f3611b59959d6f1ce7893 1 parent c9919f4
Ask Bjørn Hansen authored

Showing 1 changed file with 36 additions and 0 deletions. Show diff stats Hide diff stats

  1. +36 0 .perltidyrc
36 .perltidyrc
... ... @@ -0,0 +1,36 @@
  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 +-ci=2 # Continuation indent is 2 cols
  28 +
  29 +# we use version control, so just rewrite the file
  30 +-b
  31 +
  32 +# for the up-tight folk :)
  33 +-pt=2 # High parenthesis tightness
  34 +-bt=2 # High brace tightness
  35 +-sbt=2 # High square bracket tightness
  36 +

0 comments on commit 8068f16

Please sign in to comment.
Something went wrong with that request. Please try again.