github-actions[bot] commented on PR #31126:
URL: https://github.com/apache/doris/pull/31126#issuecomment-1952395063

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/7959863134";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In tools/ssb-tools/bin/load-ssb-data.sh line 123:
           flat_con_idx=$((${flat_con_idx} + 1))
                           ^-------------^ SC2004 (style): $/${} is unnecessary 
on arithmetic variables.
   
   
   In tools/ssb-tools/bin/load-ssb-data.sh line 341:
       local FILE_ID=$(echo "$@" | sed 's/.*\.//')
             ^-----^ SC2155 (warning): Declare and assign separately to avoid 
masking return values.
                       ^------------------------^ SC2001 (style): See if you 
can use ${variable//search/replace} instead.
   
   
   In tools/tpcds-tools/bin/load-tpcds-data.sh line 184:
                       -u "${USER}":"${PASSWORD:=}" \
                                     ^-----------^ SC2030 (info): Modification 
of PASSWORD is local (to subshell caused by $(..) expansion).
   
   
   In tools/tpcds-tools/bin/load-tpcds-data.sh line 188:
                       
http://"${FE_HOST}":"${FE_HTTP_PORT:=8030}"/api/"${DB}"/"${table_name}"/_stream_load
 2>/dev/null)
                                            ^-------------------^ SC2030 
(info): Modification of FE_HTTP_PORT is local (to subshell caused by $(..) 
expansion).
   
   
   In tools/tpcds-tools/bin/load-tpcds-data.sh line 192:
                       -u "${USER}":"${PASSWORD:=}" \
                                     ^-----------^ SC2031 (info): PASSWORD was 
modified in a subshell. That change might be lost.
   
   
   In tools/tpcds-tools/bin/load-tpcds-data.sh line 197:
                       
http://"${FE_HOST}":"${FE_HTTP_PORT:=8030}"/api/"${DB}"/"${table_name}"/_stream_load
 2>/dev/null)
                                            ^-------------------^ SC2031 
(info): FE_HTTP_PORT was modified in a subshell. That change might be lost.
   
   
   In tools/tpch-tools/bin/load-tpch-data.sh line 191:
       local FILE_ID=$(echo "$@" | sed 's/.*\.//')
             ^-----^ SC2155 (warning): Declare and assign separately to avoid 
masking return values.
                       ^------------------------^ SC2001 (style): See if you 
can use ${variable//search/replace} instead.
   
   
   In tools/tpch-tools/bin/load-tpch-data.sh line 205:
       local FILE_ID=$(echo "$@" | sed 's/.*\.//')
             ^-----^ SC2155 (warning): Declare and assign separately to avoid 
masking return values.
                       ^------------------------^ SC2001 (style): See if you 
can use ${variable//search/replace} instead.
   
   
   In tools/tpch-tools/bin/load-tpch-data.sh line 219:
       local FILE_ID=$(echo "$@" | sed 's/.*\.//')
             ^-----^ SC2155 (warning): Declare and assign separately to avoid 
masking return values.
                       ^------------------------^ SC2001 (style): See if you 
can use ${variable//search/replace} instead.
   
   For more information:
     https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to 
...
     https://www.shellcheck.net/wiki/SC2030 -- Modification of FE_HTTP_PORT is 
l...
     https://www.shellcheck.net/wiki/SC2031 -- FE_HTTP_PORT was modified in a 
su...
   ----------
   
   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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to