Bug 34303: Only perlcritic files from git repo

Test plan:
Run t/00-testcritic.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

JD amended patch: tidy

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-07-18 10:59:33 +00:00 committed by Tomas Cohen Arazi
parent b41cfcd38d
commit 2bc251cfdd
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -13,5 +13,6 @@ if ( $EVAL_ERROR ) {
plan( skip_all => $msg );
}
Test::Perl::Critic->import( -profile => '.perlcriticrc');
all_critic_ok('.');
Test::Perl::Critic->import( -profile => '.perlcriticrc' );
my @files = map { chomp; $_ } `git ls-tree -r master --name-only`; # only files part of git
all_critic_ok(@files);