diff options
| author | Mike McQuaid | 2015-07-08 15:29:55 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-07-08 15:29:55 +0100 |
| commit | 333c3d700f1f4a3f12c354b4e434d9837e497a02 (patch) | |
| tree | cee70b45c10e119ff69fdbbacef1eca2526353d3 /Library/Homebrew | |
| parent | c0c68b2b3fc258f7d1cbc7284fda1c99d51f6052 (diff) | |
| download | brew-333c3d700f1f4a3f12c354b4e434d9837e497a02.tar.bz2 | |
audit: slightly loosen GitHub repo audit.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |
