Skip to content
Snippets Groups Projects
Unverified Commit 1b926389 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #6738 from dunkmann00/audit_env

Fix Audit check for `env :std`
parents 9d539d6b 8221e32a
No related branches found
No related tags found
No related merge requests found
......@@ -948,15 +948,13 @@ module Homebrew
problem "`Use :optional` or `:recommended` instead of `#{Regexp.last_match(0)}`"
end
return unless line =~ %r{share(\s*[/+]\s*)(['"])#{Regexp.escape(formula.name)}(?:\2|/)}
problem "Use pkgshare instead of (share#{Regexp.last_match(1)}\"#{formula.name}\")"
if line =~ %r{share(\s*[/+]\s*)(['"])#{Regexp.escape(formula.name)}(?:\2|/)}
problem "Use pkgshare instead of (share#{Regexp.last_match(1)}\"#{formula.name}\")"
end
return unless @core_tap
return unless line.include?("env :std")
problem "`env :std` in `core` formulae is deprecated"
problem "`env :std` in `core` formulae is deprecated" if line.include?("env :std")
end
def audit_reverse_migration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment