v0.6.0
Jul 12, 2024
214
version = 1
[[analyzers]]
name = "shell"
Anti-pattern
34
Bug risk
173
Performance
5
Security
1
Style
1
[ .. ]
is not a part of shell syntax SH-1014var$n=value
is not a valid way of assigning to a dynamically created variable name in any shell. Please use one of the other methods to assign to names via expanded strings. Wooledge BashFaq #6 has significantly more information on the subject.
$
used in a literal context SH-1000If $
is not used specially, it is recommended to escape it. Problematic code: