Merge pull request #4204 from commitay/github-notabilty
audit: github notability
This commit is contained in:
commit
fb0f979279
@ -515,9 +515,9 @@ module Homebrew
|
|||||||
|
|
||||||
new_formula_problem "GitHub fork (not canonical repository)" if metadata["fork"]
|
new_formula_problem "GitHub fork (not canonical repository)" if metadata["fork"]
|
||||||
if formula&.tap&.core_tap? &&
|
if formula&.tap&.core_tap? &&
|
||||||
(metadata["forks_count"] < 20) && (metadata["subscribers_count"] < 20) &&
|
(metadata["forks_count"] < 30) && (metadata["subscribers_count"] < 30) &&
|
||||||
(metadata["stargazers_count"] < 50)
|
(metadata["stargazers_count"] < 75)
|
||||||
new_formula_problem "GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)"
|
new_formula_problem "GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)"
|
||||||
end
|
end
|
||||||
|
|
||||||
return if Date.parse(metadata["created_at"]) <= (Date.today - 30)
|
return if Date.parse(metadata["created_at"]) <= (Date.today - 30)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user