Not sure what's happening here. Skipping it for now. t/00-testcritic.t .. 3246/? # Failed test 'done_testing() was already called at /usr/share/perl5/Test/Perl/Critic.pm line 105' # at t/00-testcritic.t line 22. t/00-testcritic.t .. All 3249 subtests passed Test Summary Report ------------------- t/00-testcritic.t (Wstat: 0 Tests: 3251 Failed: 2) Failed tests: 3250-3251 Parse errors: Plan (1..3249) must be at the beginning or end of the TAP output Bad plan. You planned 3249 tests but ran 3251. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
18 lines
485 B
Perl
Executable file
18 lines
485 B
Perl
Executable file
#!/usr/bin/env perl
|
|
|
|
# This script can be used to run perlcritic on perl files in koha
|
|
|
|
use Modern::Perl;
|
|
use Test::More;
|
|
use English qw(-no_match_vars);
|
|
|
|
eval { require Test::Perl::Critic; };
|
|
|
|
if ($EVAL_ERROR) {
|
|
my $msg = 'Test::Perl::Critic required to criticise code,';
|
|
plan( skip_all => $msg );
|
|
}
|
|
|
|
Test::Perl::Critic->import( -profile => '.perlcriticrc' );
|
|
my @files = map { chomp; $_ } `git ls-tree -r HEAD --name-only`; # only files part of git
|
|
all_critic_ok(@files);
|