github-actions[bot] commented on PR #12981:
URL: https://github.com/apache/doris/pull/12981#issuecomment-1259388558
#### `sh-checker report`
To get the full details, please check in the
[job]("https://github.com/apache/doris/actions/runs/3134322503") output.
<details>
<summary>shellcheck errors</summary>
```
'shellcheck ' returned error 1 finding the following syntactical issues:
----------
In bin/start_be.sh line 210:
mem_limit_str=$(grep ^mem_limit ${DORIS_HOME}/conf/be.conf)
^-----------^ SC2086 (info): Double
quote to prevent globbing and word splitting.
Did you mean:
mem_limit_str=$(grep ^mem_limit "${DORIS_HOME}"/conf/be.conf)
In bin/start_be.sh line 218:
case $unit in
^---^ SC2250 (style): Prefer putting braces around variable
references even when not strictly required.
Did you mean:
case ${unit} in
In bin/start_be.sh line 231:
if [[ "$mem_limit_mb" -gt "$total_mem_mb" ]]; then
^-----------^ SC2250 (style): Prefer putting braces around
variable references even when not strictly required.
^-----------^ SC2250 (style): Prefer putting
braces around variable references even when not strictly required.
Did you mean:
if [[ "${mem_limit_mb}" -gt "${total_mem_mb}" ]]; then
In bin/start_be.sh line 232:
echo "mem_limit is larger than whole memory of the server.
$mem_limit_mb > $total_mem_mb."
^-----------^ SC2250 (style): Prefer putting braces around variable references
even when not strictly required.
^-----------^ SC2250 (style): Prefer putting braces around variable
references even when not strictly required.
Did you mean:
echo "mem_limit is larger than whole memory of the server.
${mem_limit_mb} > ${total_mem_mb}."
In bin/start_be.sh line 235:
export TCMALLOC_HEAP_LIMIT_MB=$mem_limit_mb
^-----------^ SC2250 (style): Prefer
putting braces around variable references even when not strictly required.
Did you mean:
export TCMALLOC_HEAP_LIMIT_MB=${mem_limit_mb}
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing
...
https://www.shellcheck.net/wiki/SC2250 -- Prefer putting braces around
vari...
----------
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 ' found no issues.
```
</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]