Ruby

Ruby

Made by DeepSource

Command literal without backtick detected RB-ST1022

Style
Major
Autofix

The use of %x must be avoided unless a command is to be invoked with backquotes in it (which is rather unlikely).

Bad practice

date = %x(date)

Recommended

date = `date`
echo = %x(echo `date`)