Merge pull request #10504 from samford/skip-archived-repo-audits-if-disabled

formula_auditor: skip archived repository audits if disabled
This commit is contained in:
Sam Ford 2021-02-04 13:08:19 -05:00 committed by GitHub
commit 6df0a49fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ module Homebrew
end end
def audit_github_repository_archived def audit_github_repository_archived
return if formula.deprecated? return if formula.deprecated? || formula.disabled?
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.blank? return if user.blank?
@ -411,7 +411,7 @@ module Homebrew
end end
def audit_gitlab_repository_archived def audit_gitlab_repository_archived
return if formula.deprecated? return if formula.deprecated? || formula.disabled?
user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.blank? return if user.blank?