Skip to content

Commit

Permalink
feat: add audit for wayback machine URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Jan 16, 2024
1 parent dccfc68 commit a673728
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Library/Homebrew/formula_auditor.rb
Expand Up @@ -597,12 +597,10 @@ def audit_wayback_url
regex = %r{^https?://web\.archive\.org}

Check warning on line 597 in Library/Homebrew/formula_auditor.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/formula_auditor.rb#L597

Added line #L597 was not covered by tests
if regex.match?(formula.stable.url)
problem "Formula with a Wayback Machine `url` should be deprecated with `:repo_removed`"
return
end

if regex.match?(formula.homepage)
problem "Formula with a Wayback Machine `homepage` should find an alternative `homepage`"
return
end

return unless formula.head
Expand Down

0 comments on commit a673728

Please sign in to comment.