# perl_critic test use strict ; use warnings ; use Term::ANSIColor qw(:constants) ; #~ use Test::More skip_all => 'perl_critic' ; use Test::Perl::Critic -severity => 1, -format => "[%s] %m at '%f:" . RED . "%l:%c" . RESET . "' rule %p %e\n" . "\t%r", #~ -format => "[%s] %m at '%f:" . BOLD . RED . "%l" . RESET . "'. %e\n", #~ -format => "[%s] %m at " . BOLD . BLUE . "%F:%l" . RESET . ". %e\n", -exclude => [ 'Miscellanea::RequireRcsKeywords', 'NamingConventions::ProhibitMixedCaseSubs', 'ControlStructures::ProhibitPostfixControls', 'CodeLayout::ProhibitParensWithBuiltins', 'Documentation::RequirePodAtEnd', 'ControlStructures::ProhibitUnlessBlocks', 'CodeLayout::RequireTidyCode', 'CodeLayout::ProhibitHardTabs', 'CodeLayout::ProhibitTrailingWhitespace' , 'ValuesAndExpressions::ProhibitCommaSeparatedStatements', # too many false positives. See RT #27654 ], -profile => 't/perlcriticrc' ; my $alarm_reached = 0 ; eval { local $SIG{ALRM} = sub {$alarm_reached++ ; die} ; alarm 1 ; eval { my $input = ; } ; alarm 0 ; } ; alarm 0 ; if($alarm_reached) { eval <