}
Test::Perl::Critic->import( -profile => '.perlcriticrc');
my @dirs = `git ls-tree -d --name-only master`;
my @files = `git ls-tree -r HEAD --name-only | grep -E '.*\\.(pl|pm)'`;
all_critic_ok(@dirs) if @dirs;
for my $file ( @files ) {
chomp $file;
critic_ok($file);
done_testing();
-