Merge pull request #1828 from woodruffw/audit-cctools

audit: Check for invocations of cctools.
This commit is contained in:
William Woodruff 2017-03-28 22:03:57 -04:00 committed by GitHub
commit 8608d1ea78

View File

@ -1185,6 +1185,10 @@ class FormulaAuditor
problem "'fails_with :llvm' is now a no-op so should be removed"
end
if line =~ /system\s+['"](otool)|(install_name_tool)|(lipo)/
problem "Use ruby-macho instead of calling #{$1}"
end
if formula.tap.to_s == "homebrew/core"
["OS.mac?", "OS.linux?"].each do |check|
next unless line.include?(check)