summaryrefslogtreecommitdiff
path: root/xt/author/critic.t
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-01-31 02:13:12 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-01-31 02:13:12 +0000
commit7446bb2b9d24fa6b702fbb62d73084a32ade6f75 (patch)
tree50037edde1d3cde3aaa25e759cd39975841ca663 /xt/author/critic.t
downloadClass-Tiny-tarball-7446bb2b9d24fa6b702fbb62d73084a32ade6f75.tar.gz
Diffstat (limited to 'xt/author/critic.t')
-rw-r--r--xt/author/critic.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/xt/author/critic.t b/xt/author/critic.t
new file mode 100644
index 0000000..d5b4c96
--- /dev/null
+++ b/xt/author/critic.t
@@ -0,0 +1,12 @@
+#!perl
+
+use strict;
+use warnings;
+
+use Test::More;
+use English qw(-no_match_vars);
+
+eval "use Test::Perl::Critic";
+plan skip_all => 'Test::Perl::Critic required to criticise code' if $@;
+Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc";
+all_critic_ok();