Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Harden meta checker against failed content fetches
  • Loading branch information
zoffixznet committed Jul 29, 2018
1 parent 9e1db1d commit fd967f9
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -86,8 +86,10 @@ sub _check_todo_problem_readme {
return grep $_->{problem} =~ /\bREADME\b/, ($dist->{problems} || [])->@*
if $readme->{error};

return unless $readme->{content} =~ /\b(panda|ufo)\b/;
problem 'README mentions discouraged tools (panda or ufo)', 2
if ($readme->{content}||'') =~ /\b(panda|ufo)\b/;

return
}

sub _check_meta_url {
Expand Down Expand Up @@ -120,8 +122,10 @@ sub _check_todo_problem_travis_yml {
return grep $_->{problem} =~ /\bTravis-CI\b/, ($dist->{problems} || [])->@*
if $travisyml->{error};

return unless $travisyml->{content} =~ /\brakudobrew\s+build[- ]panda\b/;
problem 'Travis-CI config asks rakudobrew to build panda.', 3
if ($travisyml->{content}||'') =~ /\brakudobrew\s+build[- ]panda\b/;

return
}


Expand Down

0 comments on commit fd967f9

Please sign in to comment.