From 333c3d700f1f4a3f12c354b4e434d9837e497a02 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 8 Jul 2015 15:29:55 +0100 Subject: audit: slightly loosen GitHub repo audit. --- Library/Homebrew/cmd/audit.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 326197d39..78242f78a 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -434,14 +434,14 @@ class FormulaAuditor begin metadata = GitHub.repository(user, repo) - rescue GitHub::HTTPNotFoundError => e + rescue GitHub::HTTPNotFoundError return end problem "GitHub fork (not canonical repository)" if metadata["fork"] - if (metadata["forks_count"] < 5) || (metadata["watchers_count"] < 5) || - (metadata["stargazers_count"] < 10) - problem "GitHub repository not notable enough (<5 forks, <5 watchers and/or <10 stars)" + if (metadata["forks_count"] < 10) && (metadata["watchers_count"] < 10) && + (metadata["stargazers_count"] < 20) + problem "GitHub repository not notable enough (<10 forks, <10 watchers and <20 stars)" end if (Date.parse(metadata["created_at"]) > (Date.today - 30)) -- cgit v1.2.3