The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;

use File::Spec;
use FindBin ();
use Test::More;

if ( !-e "$FindBin::Bin/../MANIFEST.SKIP" ) {
    plan skip_all => 'Critic test only for developers.';
}
else {
    eval { require Test::Perl::Critic };
    if ( $@ ) {
        plan tests => 1;
        fail( 'You must install Test::Perl::Critic to run 04critic.t' );
        exit;
    }
}

my $rcfile = File::Spec->catfile( 't', '04critic.rc' );
Test::Perl::Critic->import( -profile => $rcfile );
all_critic_ok();