You should add this to the top of the codacy.sh generated by the extension.
# Prefer a globally available codacy-cli-v2 from PATH.
if command -v "$bin_name" > /dev/null 2>&1; then
run_command="$(command -v "$bin_name")"
if [ "$#" -eq 1 ] && [ "$1" = "download" ]; then
echo "Codacy cli v2 download succeeded (already available in PATH)"
else
"$run_command" "$@"
fi
exit $?
fi
You should add this to the top of the
codacy.shgenerated by the extension.