Update shell metacharacter list

This commit is contained in:
Rylan Polster 2020-06-30 10:18:49 -04:00
parent d921e94a2b
commit 35a8c33690

View File

@ -264,7 +264,7 @@ module RuboCop
:safe_popen_write,
]
shell_metacharacters = %w[> >> < << | ; & && || *]
shell_metacharacters = %w[> < < | ; : & * $ ? : ~ + @ !` ( ) [ ]]
find_every_method_call_by_name(body_node, :system).each do |method|
# Continue if a shell metacharacter is present