Skip to content
Snippets Groups Projects
Commit f6295568 authored by Shaun Jackman's avatar Shaun Jackman
Browse files

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

parent 6f0ef7de
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
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