3 # This script can be used to run perlcritic on perl files in koha
7 use English qw(-no_match_vars);
9 eval { require Test::Perl::Critic; };
12 my $msg = 'Test::Perl::Critic required to criticise code,';
13 plan( skip_all => $msg );
16 Test::Perl::Critic->import( -profile => '.perlcriticrc' );
17 my @files = map { chomp; $_ } `git ls-tree -r HEAD --name-only`; # only files part of git
18 all_critic_ok(@files);