Permalink
Browse files

Added a perltidyrc file

  • Loading branch information...
1 parent 6ed9412 commit e756500c1a78778e744aa122afd6dc273fa828b8 @cosimo committed Aug 3, 2011
Showing with 34 additions and 0 deletions.
  1. +2 −0 MANIFEST
  2. +32 −0 perltidyrc
View
@@ -31,6 +31,7 @@ MANIFEST
MANIFEST.SKIP
META.yml Module meta-data (added by MakeMaker)
README
+perltidyrc
t/01basic.t
t/02info.t
t/06msgcodec.t
@@ -41,3 +42,4 @@ t/30gsmascii.t
t/30networks.t
t/31_rt_57585.t
t/31_rt_58869.t
+
View
@@ -0,0 +1,32 @@
+# 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 PBP
+
+#--maximum-line-length=100 # be slightly more 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 #
+
+# 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 e756500

Please sign in to comment.