Merge pull request #5352 from sjackman/audit-os-mac

audit: Disable "Don't use OS.mac?" for Linuxbrew
This commit is contained in:
Mike McQuaid
2018-11-26 21:58:37 +00:00
committed by GitHub
+1 -1
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"