Browse files

Add perlcritic and perltidy files from Ack1

  • Loading branch information...
1 parent ae7db52 commit 4e6890c3e29c9bbda964d6ea6fbcfa861ce53e3b @hoelzro hoelzro committed Nov 1, 2011
Showing with 59 additions and 0 deletions.
  1. +34 −0 perlcriticrc
  2. +25 −0 perltidyrc
View
34 perlcriticrc
@@ -0,0 +1,34 @@
+[-CodeLayout::ProhibitParensWithBuiltins]
+[CodeLayout::ProhibitHardTabs]
+allow_leading_tabs = 0
+[-CodeLayout::RequireTidyCode]
+# Never works for me.
+
+[-ControlStructures::ProhibitPostfixControls]
+
+[-Documentation::RequirePodAtEnd]
+[-Documentation::RequirePodSections]
+
+[-ErrorHandling::RequireCarping]
+
+[-InputOutput::ProhibitInteractiveTest]
+[-InputOutput::ProhibitBacktickOperators]
+[-InputOutput::RequireCheckedSyscalls]
+functions = open opendir read readline readdir close closedir
+
+[-Miscellanea::RequireRcsKeywords]
+
+[-Modules::RequireVersionVar]
+
+[-RegularExpressions::RequireExtendedFormatting]
+[-RegularExpressions::RequireLineBoundaryMatching]
+
+[-Subroutines::RequireArgUnpacking]
+
+[-ValuesAndExpressions::ProhibitNoisyQuotes]
+[-ValuesAndExpressions::ProhibitEmptyQuotes]
+[-ValuesAndExpressions::ProhibitMagicNumbers]
+
+
+[-Variables::ProhibitPackageVars]
+[-Variables::ProhibitPunctuationVars]
View
25 perltidyrc
@@ -0,0 +1,25 @@
+--maximum-line-length=120
+--indent-columns=4
+--preserve-line-endings
+--no-tabs
+
+--continuation-indentation=4
+
+--paren-tightness=1
+--brace-tightness=1
+--block-brace-tightness=0
+--square-bracket-tightness=1
+--space-keyword-paren
+--nocuddled-else
+--opening-token-right
+--delete-old-newlines
+--comma-arrow-breakpoints=0
+--nobreak-at-old-ternary-breakpoints
+
+--noblanks-before-comments
+--blanks-before-subs
+--blanks-before-blocks
+
+-asc # allows perltidy to add a ';' when missing (default)
+-dsm # allows perltidy to delete an unnecessary ';' (default)
+

0 comments on commit 4e6890c

Please sign in to comment.