6 eval { require Test::Perl::Critic; };
9 my $msg = 'Test::Perl::Critic required to criticise code';
10 plan( skip_all => $msg );
13 unless ($ENV{AUTHOR_TEST}) {
14 my $msg = 'Test::Perl::Critic only run when AUTHOR_TEST set';
15 plan( skip_all => $msg );
18 my $rcfile = File::Spec->catfile( 't', 'perlcriticrc' );
19 Test::Perl::Critic->import( -profile => $rcfile );
26 # cperl-indent-level: 4