Skip to content

Improve CommandLiteralInjection #9

@dentarg

Description

@dentarg

The suggestion from CommandLiteralInjection isn't great, just switching from the backtick method to system does not make what ever you are doing safe. https://ruby-doc.org/3.3.0/command_injection_rdoc.html

https://github.com/84codes/rubocop-eighty-four-codes/blob/c5a1f07d20af5c147568f21bc5c260f96791f8e1/lib/rubocop/cop/eighty_four_codes/command_literal_injection.rb#L3-L19

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions