30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/rubocop/cop/style/string_hash_keys.rb', line 30
def_node_matcher :receive_environments_method?, <<~PATTERN
{
^^(send (const {nil? cbase} :IO) :popen ...)
^^(send (const {nil? cbase} :Open3)
{:capture2 :capture2e :capture3 :popen2 :popen2e :popen3} ...)
^^^(send (const {nil? cbase} :Open3)
{:pipeline :pipeline_r :pipeline_rw :pipeline_start :pipeline_w} ...)
^^(send {nil? (const {nil? cbase} :Kernel)} {:spawn :system} ...)
^^(send _ {:gsub :gsub!} ...)
}
PATTERN
|