From def936cea96348974b21c2b1570e9b99b58b59db Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 18 Jul 2023 10:59:33 +0000 Subject: [PATCH] Bug 34303: Only perlcritic files from git repo Content-Type: text/plain; charset=utf-8 Test plan: Run t/00-testcritic.t Signed-off-by: Marcel de Rooy --- t/00-testcritic.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/00-testcritic.t b/t/00-testcritic.t index cd3a7af71b..aa3fa80901 100755 --- a/t/00-testcritic.t +++ b/t/00-testcritic.t @@ -14,4 +14,5 @@ if ( $EVAL_ERROR ) { } Test::Perl::Critic->import( -profile => '.perlcriticrc'); -all_critic_ok('.'); +my @files = map { chomp; $_ } `git ls-tree -r master --name-only`; # only files part of git +all_critic_ok(@files); -- 2.30.2