audit: Silence not notable on non-Homebrew taps
Silence "GitHub repository not notable" on non-Homebrew taps.
This commit is contained in:
parent
91ab116ace
commit
53dd0e3f28
@ -590,7 +590,8 @@ class FormulaAuditor
|
|||||||
return if metadata.nil?
|
return if metadata.nil?
|
||||||
|
|
||||||
problem "GitHub fork (not canonical repository)" if metadata["fork"]
|
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)
|
(metadata["stargazers_count"] < 50)
|
||||||
problem "GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)"
|
problem "GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user