@@ -, +, @@ --- t/00-testcritic.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/t/00-testcritic.t +++ a/t/00-testcritic.t @@ -14,4 +14,5 @@ if ( $EVAL_ERROR ) { } Test::Perl::Critic->import( -profile => '.perlcriticrc'); -all_critic_ok('.'); +my @dirs = map { chomp; $_ } `git ls-tree -d --name-only master`; +all_critic_ok(@dirs) if @dirs; --