Skip to content

Commit

Permalink
Merge pull request #26 from paultcochrane/pr/require-app-cpants-lint
Browse files Browse the repository at this point in the history
Require App::CPANTS::Lint for kwalitee checks
  • Loading branch information
briandfoy committed Oct 29, 2017
2 parents ca54ee8 + b6adec2 commit a6a9a64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Module/Release/Kwalitee.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ It looks in local_name to get the name of the distribution file.

sub check_kwalitee
{
eval "require Module::CPANTS::Analyse; 1" or
$_[0]->_die( "You need Module::CPANTS::Analyse to check kwalitee" );
my $cpants_analyse = "Module::CPANTS::Analyse";
my $cpants_lint = "App::CPANTS::Lint";
eval "require $cpants_analyse; require $cpants_lint; 1" or
$_[0]->_die( "You need $cpants_analyse and $cpants_lint to check kwalitee" );

$_[0]->_print( "Checking kwalitee... " );

Expand Down

0 comments on commit a6a9a64

Please sign in to comment.