summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-15 02:17:22 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-15 02:17:22 +0000
commit4b3a11ee6c15f097422ad897fe97a79e5890ca8d (patch)
treefd5f2874a91c28bf9aaa0ecd77788ac4c21b9a92
parent0b6a5e156b4a0aabe1ed1242373ca87fcb5d562f (diff)
beginning to use the perl critic to clean up certian things in ikiwiki
-rw-r--r--.perlcriticrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/.perlcriticrc b/.perlcriticrc
new file mode 100644
index 000000000..2c784e893
--- /dev/null
+++ b/.perlcriticrc
@@ -0,0 +1,14 @@
+theme = core + pbp + cosmetic + bugs + maintenance + complexity + security
+
+# While there's good reason to not use subroutine prototypes, ikiwiki does
+# use them, and changing away from them could lead to subtle bugs in stuff
+# using the library. So for now, demote errors about them.
+[Subroutines::ProhibitSubroutinePrototypes]
+severity = 3
+
+# ProhibitStringyEval is broken; it doesn't take into account that
+# eval q{use Foo};
+# defers the use until the eval runs.
+# eval {use Foo}
+# does not defer the use at all.
+[-BuiltinFunctions::ProhibitStringyEval]