Merge pull request #5352 from sjackman/audit-os-mac
audit: Disable "Don't use OS.mac?" for Linuxbrew
This commit is contained in:
commit
f592d659f0
@ -180,7 +180,7 @@ module RuboCop
|
|||||||
end
|
end
|
||||||
|
|
||||||
[:mac?, :linux?].each do |method_name|
|
[: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|
|
find_instance_method_call(body_node, "OS", method_name) do |check|
|
||||||
problem "Don't use #{check.source}; Homebrew/core only supports macOS"
|
problem "Don't use #{check.source}; Homebrew/core only supports macOS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user