Pattern: Use of $
/${}
on the left side of assignment
Issue: -
Unlike Perl or PHP, $
is not used on the left-hand side of =
when assigning to a variable.
Example of incorrect code:
$greeting="Hello World"
${greeting}="Hello World"
Example of correct code:
greeting="Hello World"