Skip to content

Instantly share code, notes, and snippets.

@takus
Created April 10, 2012 11:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takus/2350567 to your computer and use it in GitHub Desktop.
Save takus/2350567 to your computer and use it in GitHub Desktop.
.perltidyrc described in "Perl Best Practice"
# Max line width is 78 cols
-l=78
# Indent level is 4 cols
-i=4
# Continuation indent is 4 cols
-ci=4
# Output to STDOUT
-st
# Errors to STDERR
-se
# Maximal vertical tightness
-vt=2
# No extra indentation for closing brackets
-cti=0
# Medium parenthesis tightness
-pt=1
# Medium brace tightness
-bt=1
# Medium square bracket tightness
-sbt=1
# Medium block brace tightness
-bbt=1
# No space before semicolons
-nsfs
# Don't outdent long quoted strings
-nolq
# Break before all operators
-wbb="% + - * / x != == >= <= =~ !~ < > | & **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment