Skip to content
Snippets Groups Projects
Unverified Commit f1a8e900 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #6685 from jonchang/fix-6681

audit: improve check for forked Bitbucket repository
parents 0171c2c0 ae9638a8
No related branches found
No related tags found
No related merge requests found
......@@ -618,9 +618,7 @@ module Homebrew
new_formula_problem "Uses deprecated mercurial support in Bitbucket" if metadata["scm"] == "hg"
if metadata["parent"]["full_name"] == "#{user}/#{repo}"
new_formula_problem "Bitbucket fork (not canonical repository)"
end
new_formula_problem "Bitbucket fork (not canonical repository)" unless metadata["parent"].nil?
if Date.parse(metadata["created_on"]) >= (Date.today - 30)
new_formula_problem "Bitbucket repository too new (<30 days old)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment