Start checking PRs with perlcritic

This commit is contained in:
Your Name
2021-08-19 16:13:45 -04:00
parent 098e48d055
commit 241985fb2d
4 changed files with 38 additions and 4 deletions

13
t/perlcritic.pl Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Cwd 'abs_path';
use File::Basename;
my $dirname = abs_path(dirname(__FILE__) . "/..");
print STDERR "Executing perlcritic against $dirname\n";
chdir($dirname) or die "Failed to enter $dirname\n";
exec("perlcritic", ".") or die "Failed to execute perlcritic.";