org.sonar.l10n.shellcheck.rules.shellcheck.SC2225.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 cp has no destination. Check the arguments.
Problematic code
cp "$file $dir"
Correct code
cp "$file" "$dir"
Rationale
ShellCheck found a cp
command with a single parameter. This may be because the source and destination was accidentally merged into a single argument, or because the line was broken in an invalid way.
Fix the cp
statement by correctly specifying both source and destination.
Exceptions
None
© 2015 - 2025 Weber Informatics LLC | Privacy Policy