This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag 0.07
in repository libdancer-plugin-rest-perl.

commit 2d66043a617ace87cfd752b21c6aa7bc9c6bf29c
Author: Alexis Sukrieh <suk...@sukria.net>
Date:   Tue Oct 26 12:53:15 2010 +0200

    perlcritic/perltidy conf files
---
 .perlcriticrc | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 .perltidyrc   | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/.perlcriticrc b/.perlcriticrc
new file mode 100644
index 0000000..ff69073
--- /dev/null
+++ b/.perlcriticrc
@@ -0,0 +1,57 @@
+verbose  = [%p] %m at %f line %l, near '%r'\n
+severity = 2
+
+# we don't want these POD rules
+[-Documentation::RequirePodSections]
+
+# we want to be able to define short getters
+[-Subroutines::RequireFinalReturn]
+
+# we use eval strings in Dancer for dynamic loading
+[-BuiltinFunctions::ProhibitStringyEval] 
+
+# we use magic closure bindings in some places 
+[-TestingAndDebugging::ProhibitNoStrict]
+[-TestingAndDebugging::ProhibitNoWarnings]
+
+# We're not under CVS! :)
+[-Miscellanea::RequireRcsKeywords]
+
+# only Dancer.pm matters here
+[-Modules::RequireVersionVar]
+
+# we use postifx controls
+[-ControlStructures::ProhibitPostfixControls]
+
+# we provide syntactic sugar, so we need them
+[-Subroutines::ProhibitSubroutinePrototypes]
+
+# we check $@
+[-ErrorHandling::RequireCheckingReturnValueOfEval] 
+
+# we use $@ and $!
+[-Variables::ProhibitPunctuationVars] 
+
+# we don't check close
+[-InputOutput::RequireCheckedClose]
+
+# I really don't think q{/} is more readable than '/'...
+[-ValuesAndExpressions::ProhibitNoisyQuotes]
+
+# We don't care about POD links for now
+[-Documentation::RequirePodLinksIncludeText]
+
+[-RegularExpressions::RequireExtendedFormatting]
+minimum_regex_length_to_complain_about = 5
+
+# we have name and log here
+[-Subroutines::ProhibitBuiltinHomonyms]
+
+[-ValuesAndExpressions::ProhibitMagicNumbers]
+
+[-Subroutines::RequireArgUnpacking]
+
+[-Modules::ProhibitAutomaticExportation]
+
+[-ValuesAndExpressions::ProhibitCommaSeparatedStatements]
+[-ControlStructures::ProhibitUnlessBlocks]
diff --git a/.perltidyrc b/.perltidyrc
new file mode 100644
index 0000000..5866d16
--- /dev/null
+++ b/.perltidyrc
@@ -0,0 +1,34 @@
+-l=79   # Max line width is 79 cols
+-i=4    # Indent level is 4 cols
+-ci=4   # Continuation indent is 4 cols
+
+-b 
+-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=79    # 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
+

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-rest-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to