hiroyuki-sato opened a new pull request, #50795:
URL: https://github.com/apache/arrow/pull/50795
### Rationale for this change
This is the sub issue #44748.
* SC1091: Not following: (error message here)
* SC2086: Double quote to prevent globbing and word splitting.
* SC2223: This default assignment may cause DoS due to globbing. Quote it.
```
shellcheck ci/scripts/r_test.sh
In ci/scripts/r_test.sh line 21:
: ${R_BIN:=R}
^---------^ SC2223 (info): This default assignment may cause DoS due to
globbing. Quote it.
In ci/scripts/r_test.sh line 25:
pushd ${source_dir}
^-----------^ SC2086 (info): Double quote to prevent globbing and word
splitting.
Did you mean:
pushd "${source_dir}"
In ci/scripts/r_test.sh line 30:
. "${ARROW_PYTHON_VENV}/bin/activate"
^-- SC1091 (info): Not following: ./bin/activate: openBinaryFile: does
not exist (No such file or directory)
For more information:
https://www.shellcheck.net/wiki/SC1091 -- Not following: ./bin/activate:
op...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing
...
https://www.shellcheck.net/wiki/SC2223 -- This default assignment may
cause...
```
### What changes are included in this PR?
* SC1091: Add a ShellCheck directive to disable source file checking.
* SC2086: Quote variables.
* SC2223: Quote variables.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]