The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
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 perl-critic.t'
    );
        exit;
    }
}

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

Test::Perl::Critic::all_critic_ok();