diff options
Diffstat (limited to 't')
-rw-r--r-- | t/00-author-critic.t | 4 | ||||
-rw-r--r-- | t/perlcriticrc | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/t/00-author-critic.t b/t/00-author-critic.t index 7937131..79ed2b7 100644 --- a/t/00-author-critic.t +++ b/t/00-author-critic.t @@ -10,6 +10,7 @@ BEGIN { my @MODULES = ( 'Perl::Critic 1.098', 'Test::Perl::Critic 1.01', + 'File::Spec', ); # Don't run tests during end-user installs @@ -27,7 +28,8 @@ foreach my $MODULE ( @MODULES ) { : plan( skip_all => "$MODULE not available for testing" ); } } - +my $rcfile = File::Spec->catfile( 't', 'perlcriticrc' ); +Test::Perl::Critic->import( -profile => $rcfile ); all_critic_ok(); 1; diff --git a/t/perlcriticrc b/t/perlcriticrc new file mode 100644 index 0000000..3593672 --- /dev/null +++ b/t/perlcriticrc @@ -0,0 +1,9 @@ +severity = 1 +theme = core || bug || maintenance || complexity || security +color = 1 + +[-Miscellanea::RequireRcsKeywords] +[-Documentation::RequirePodSections] +[-Variables::ProhibitLocalVars] +[-ValuesAndExpressions::ProhibitEmptyQuotes] +[-Subroutines::RequireArgUnpacking] |