Skip to content
Browse files

perltidyrc

  • Loading branch information...
1 parent 4e5c645 commit ecaa7371cc0412360fc2485e844fe96a0a913e91 @tempire committed Feb 3, 2011
Showing with 33 additions and 0 deletions.
  1. +33 −0 perltidyrc
View
33 perltidyrc
@@ -0,0 +1,33 @@
+# Perl Best Practices (plus errata) .perltidyrc file
+-l=98 # Max line width is 98 cols
+-i=4 # Indent level is 4 cols
+-ci=4 # Continuation indent is 4 cols
+#-st # Output to STDOUT
+-se # Errors to STDERR
+-vt=2 # Maximal vertical tightness
+-cti=0 # No extra indentation for closing brackets
+-pt=1 # Medium parenthesis tightness
+-bt=1 # Medium brace tightness
+-sbt=1 # Medium square bracket tightness
+-bbt=1 # Medium block brace tightness
+-nsfs # No space before semicolons
+-nolq # Don't outdent long quoted strings
+-wbb="% + - * / x != == >= <= =~ < > | & **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
+ # Break before all operators
+
+# Extras/overrides/deviations from Perl Best Practices
+--maximum-line-length=78 # Be less generous
+--warning-output # Show warnings
+--maximum-consecutive-blank-lines=2 # Default is 1
+--nohanging-side-comments # Troublesome for commented out code
+
+-isbc # Block comments may only be indented if they have some space characters before the #
+-ci=2 # Continuation indent is 2 cols
+
+# We use version control, so just rewrite the file
+-b
+
+# For the up-tight folk :)
+-pt=2 # High parenthesis tightness
+-bt=2 # High brace tightness
+-sbt=2 # High square bracket tightness

0 comments on commit ecaa737

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