dev-cmd/audit: make git audit only --new-formula only.

Useful in e.g. https://github.com/Homebrew/homebrew-core/pull/46550 to
avoid repeatedly triggering a failing audit.
This commit is contained in:
Mike McQuaid 2020-01-08 12:12:26 +00:00
parent 6ca77af632
commit 4efc1276b3
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -407,7 +407,7 @@ module Homebrew
problem "Dependency #{dep} does not define option #{opt.name.inspect}"
end
problem "Don't use git as a dependency (it's always available)" if dep.name == "git"
problem "Don't use git as a dependency (it's always available)" if @new_formula && dep.name == "git"
problem "Dependency '#{dep.name}' is marked as :run. Remove :run; it is a no-op." if dep.tags.include?(:run)