From 4b3a11ee6c15f097422ad897fe97a79e5890ca8d Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 15 Aug 2007 02:17:22 +0000 Subject: [PATCH] beginning to use the perl critic to clean up certian things in ikiwiki --- .perlcriticrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .perlcriticrc 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] -- 2.26.2