audit: Silence not notable on non-Homebrew taps

Silence "GitHub repository not notable" on non-Homebrew taps.
This commit is contained in:
Shaun Jackman 2017-10-06 11:39:43 -07:00
parent 91ab116ace
commit 53dd0e3f28

View File

@ -590,7 +590,8 @@ class FormulaAuditor
return if metadata.nil?
problem "GitHub fork (not canonical repository)" if metadata["fork"]
if (metadata["forks_count"] < 20) && (metadata["subscribers_count"] < 20) &&
if formula&.tap&.core_tap? &&
(metadata["forks_count"] < 20) && (metadata["subscribers_count"] < 20) &&
(metadata["stargazers_count"] < 50)
problem "GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)"
end