audit: github notability

This commit is contained in:
commitay 2018-06-01 08:30:03 +10:00
parent dc96e6f735
commit 54b4f0c743

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)