Merge pull request #4204 from commitay/github-notabilty

audit: github notability
This commit is contained in:
Mike McQuaid 2018-06-01 08:39:26 +01:00 committed by GitHub
commit fb0f979279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,9 +515,9 @@ module Homebrew
new_formula_problem "GitHub fork (not canonical repository)" if metadata["fork"]
if formula&.tap&.core_tap? &&
(metadata["forks_count"] < 20) && (metadata["subscribers_count"] < 20) &&
(metadata["stargazers_count"] < 50)
new_formula_problem "GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)"
(metadata["forks_count"] < 30) && (metadata["subscribers_count"] < 30) &&
(metadata["stargazers_count"] < 75)
new_formula_problem "GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)"
end
return if Date.parse(metadata["created_at"]) <= (Date.today - 30)