summaryrefslogtreecommitdiff
path: root/t/author-critic.t
diff options
context:
space:
mode:
Diffstat (limited to 't/author-critic.t')
-rw-r--r--t/author-critic.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/author-critic.t b/t/author-critic.t
index 22becf1..c6a3a00 100644
--- a/t/author-critic.t
+++ b/t/author-critic.t
@@ -11,5 +11,13 @@ BEGIN {
use strict;
use warnings;
-use Test::Perl::Critic (-profile => "perlcritic.rc") x!! -e "perlcritic.rc";
-all_critic_ok();
+# this test was generated with Dist::Zilla::Plugin::Test::Perl::Critic::Subset 3.001.005
+
+use Test::Perl::Critic (-profile => "") x!! -e "";
+
+my $filenames = ['lib/Perinci/Object.pm','lib/Perinci/Object/EnvResult.pm','lib/Perinci/Object/EnvResultMulti.pm','lib/Perinci/Object/EnvResultTable.pm','lib/Perinci/Object/Function.pm','lib/Perinci/Object/Metadata.pm','lib/Perinci/Object/Package.pm','lib/Perinci/Object/ResMeta.pm','lib/Perinci/Object/Variable.pm'];
+unless ($filenames && @$filenames) {
+ $filenames = -d "blib" ? ["blib"] : ["lib"];
+}
+
+all_critic_ok(@$filenames);