How do you include a perlcritic options to xt/02perlcritic.t itself instead of xt/perlcriticrc
If you don't want to split xt/perlcritrc and xt/02perlcritic.t, so, you can write as following.
use strict;
use Test::More;
eval q{
use Test::Perl::Critic 1.02 -exclude => [
'Subroutines::ProhibitSubroutinePrototypes',
'Subroutines::ProhibitExplicitReturnUndef',
'TestingAndDebugging::ProhibitNoStrict',
'ControlStructures::ProhibitMutatingListFunctions',
]
};
plan skip_all => "Test::Perl::Critic 1.02+ is not installed." if $@;
all_critic_ok('lib');
Regards,
Published: 2011-02-01(Tue) 21:58