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

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/3512983568";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 2 finding the following syntactical issues:
   
   ----------
   docker/runtime/fe/resource/run_fe.sh: <stdout>: commitBuffer: invalid 
argument (invalid character)
   
   In docker/runtime/be/Dockerfile line 27:
   ADD ./resource/apache-doris-be-"${x.x.x}"-bin-x86_64.tar.gz /opt/
                                   ^------^ SC2154 (warning): x is referenced 
but not assigned.
   
   
   In docker/runtime/be/resource/run_be.sh line 54:
   feServerArray=(${FE_SERVERS})
                  ^-----------^ SC2206 (warning): Quote to prevent word 
splitting/globbing, or split robustly with mapfile or read -a.
   
   
   In docker/runtime/be/resource/run_be.sh line 80:
   registerMySQL="mysql -uroot -P9030 -h${feIpArray[1]} -e" "\"alter system add 
backend '${be_ip}:${be_heartbeat_port}'\""
                                                            ^-- SC2288 
(warning): This is interpreted as a command name ending with doublequote. 
Double check syntax.
   
   
   In docker/runtime/be/resource/run_be.sh line 83:
   echo "DEBUG >>>>>> registerMySQL = ${registerMySQL}"
                                      ^--------------^ SC2154 (warning): 
registerMySQL is referenced but not assigned.
   
   
   In docker/runtime/fe/Dockerfile line 27:
   ADD ./resource/apache-doris-fe-"${x.x.x}"-bin.tar.gz /opt/
                                   ^------^ SC2154 (warning): x is referenced 
but not assigned.
   
   
   In docker/runtime/fe/resource/run_fe.sh line 53:
   feServerArray=(${FE_SERVERS})
                  ^-----------^ SC2206 (warning): Quote to prevent word 
splitting/globbing, or split robustly with mapfile or read -a.
   
   
   In docker/runtime/fe/resource/run_fe.sh line 89:
       registerMySQL=echo "mysql -uroot -P9030 -h${feIpArray[1]} -e" "\"alter 
system add follower '${feIpArray[FE_ID]}:${feEditLogPortArray[FE_ID]}'\""
       ^-- SC2209 (warning): Use var=$(command) to assign output (or quote to 
assign string).
   
   
   In docker/runtime/fe/resource/run_fe.sh line 95:
       echo "DEBUG >>>>>> registerMySQL = For more information:
     https://www.shellcheck.net/wiki/SC2027 -- The surrounding quotes actually 
u...
     https://www.shellcheck.net/wiki/SC2154 -- registerMySQL is referenced but 
n...
     https://www.shellcheck.net/wiki/SC2206 -- Quote to prevent word 
splitting/g...
   ----------
   
   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:
   
   ----------
   docker/runtime/be/Dockerfile:27:35: invalid parameter name
   docker/runtime/fe/Dockerfile:27:35: invalid parameter name
   ----------
   
   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: 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