org.sonar.l10n.shellcheck.rules.shellcheck.SC2194.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-shellcheck-plugin Show documentation
Show all versions of sonar-shellcheck-plugin Show documentation
ShellCheck plugin for SonarQube
This word is constant. Did you forget the $ on a variable?
Problematic code
case foo in
bar) echo "Match"
esac
Correct code
case $foo in
bar) echo "Match"
esac
Rationale
You are using a case
statement to compare a literal word.
You most likely wanted to treat this word as a $variable
or $(command)
instead.
Exceptions
None
© 2015 - 2025 Weber Informatics LLC | Privacy Policy