Home | History | Annotate | Download | only in author
      1 use strict;
      2 use warnings;
      3 
      4 use File::Spec;
      5 use English qw(-no_match_vars);
      6 
      7 use Test::More;
      8 
      9 eval {
     10     require Test::Perl::Critic;
     11 };
     12 if ( $EVAL_ERROR ) {
     13    my $msg = 'Test::Perl::Critic required to criticise code';
     14    plan( skip_all => $msg );
     15 }
     16 
     17 my $rcfile = File::Spec->catfile( 't', 'author', 'perlcriticrc' );
     18 Test::Perl::Critic->import( -profile => $rcfile );
     19 all_critic_ok();
     20