github-actions[bot] commented on PR #15926:
URL: https://github.com/apache/doris/pull/15926#issuecomment-1382729449
#### `sh-checker report`
To get the full details, please check in the
[job]("https://github.com/apache/doris/actions/runs/3918548003") output.
<details>
<summary>shellcheck errors</summary>
```
'shellcheck ' returned error 1 finding the following syntactical issues:
----------
In thirdparty/download-thirdparty.sh line 290:
cd ${TP_SOURCE_DIR}/${ODBC_SOURCE}
^--------------^ SC2086 (info): Double quote to prevent globbing and word
splitting.
^------------^ SC2248 (style): Prefer double quoting
even when variables don't contain special characters.
Did you mean:
cd "${TP_SOURCE_DIR}"/"${ODBC_SOURCE}"
In thirdparty/download-thirdparty.sh line 291:
if [ ! -f ${PATCHED_MARK} ]; then
^----------------------^ SC2292 (style): Prefer [[ ]] over [ ] for tests
in Bash/Ksh.
^-------------^ SC2248 (style): Prefer double quoting even when
variables don't contain special characters.
Did you mean:
if [[ ! -f "${PATCHED_MARK}" ]]; then
In thirdparty/download-thirdparty.sh line 292:
patch -p1 < ${TP_PATCH_DIR}/sqltypes.h.patch
^-------------^ SC2086 (info): Double quote to prevent
globbing and word splitting.
Did you mean:
patch -p1 < "${TP_PATCH_DIR}"/sqltypes.h.patch
In thirdparty/download-thirdparty.sh line 293:
touch ${PATCHED_MARK}
^-------------^ SC2248 (style): Prefer double quoting even when
variables don't contain special characters.
Did you mean:
touch "${PATCHED_MARK}"
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing
...
https://www.shellcheck.net/wiki/SC2248 -- Prefer double quoting even when
v...
https://www.shellcheck.net/wiki/SC2292 -- Prefer [[ ]] over [ ] for tests
i...
----------
You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
# shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.
```
</details>
<details>
<summary>shfmt errors</summary>
```
'shfmt ' returned error 1 finding the following formatting issues:
----------
--- thirdparty/download-thirdparty.sh.orig
+++ thirdparty/download-thirdparty.sh
@@ -289,7 +289,7 @@
#patch sqltypes.h, change TCAHR to TWCHAR to avoid conflict with clucene
TCAHR
cd ${TP_SOURCE_DIR}/${ODBC_SOURCE}
if [ ! -f ${PATCHED_MARK} ]; then
- patch -p1 < ${TP_PATCH_DIR}/sqltypes.h.patch
+ patch -p1 <${TP_PATCH_DIR}/sqltypes.h.patch
touch ${PATCHED_MARK}
fi
cd -
----------
You can reformat the above files to meet shfmt's requirements by typing:
shfmt -w filename
```
</details>
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]