audit: Disable "Don't use OS.mac?" for Linuxbrew

This commit is contained in:
Shaun Jackman 2018-11-26 11:55:28 -08:00
parent 6f0ef7deec
commit f62955688f

View File

@ -180,7 +180,7 @@ module RuboCop
end
[:mac?, :linux?].each do |method_name|
next unless formula_tap == "homebrew-core"
next if formula_tap != "homebrew-core" || file_path&.match(/linuxbrew/)
find_instance_method_call(body_node, "OS", method_name) do |check|
problem "Don't use #{check.source}; Homebrew/core only supports macOS"