Skip to content

Instantly share code, notes, and snippets.

@melo
Created March 4, 2012 09:34
Show Gist options
  • Save melo/1971707 to your computer and use it in GitHub Desktop.
Save melo/1971707 to your computer and use it in GitHub Desktop.
The quest for the perfect .perltidyrc
# My (almost) perfect perl tidy config file
-l=100 # Max line width is 100 cols - We are not on vt100 line terminals anymore
-i=2 # Indent level is 2 cols
-ci=2 # Continuation indent is 2 cols
-se # Errors to STDERR
-vt=2 # Maximal vertical tightness
-cti=0 # No extra indentation for closing brackets
-pt=2 # High parenthesis tightness
-bt=2 # High brace tightness
-sbt=2 # High square bracket tightness
-bbt=1 # Medium block brace tightness
-nsfs # No space before semicolons
-nolq # Don't outdent long quoted strings
-b # we use version control, so just rewrite the file
# Break before all operators
-wbb="% + - * / x != == >= <= =~ < > | & **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
## More tweaks
--warning-output # Show warnings
--maximum-consecutive-blank-lines=2 # default is 1
--nohanging-side-comments # troublesome for commented out code
# block comments may only be indented if they have some space characters before the #
-isbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment