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

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/5240654923";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In run-be-ut.sh line 347:
   if [[ "${MACHINE_OS}" == "Darwin" ]]; then
          ^-----------^ SC2154 (warning): MACHINE_OS is referenced but not 
assigned.
   
   
   In run-be-ut.sh line 366:
   export JAVA_OPTS="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log 
-Xloggc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Dsun.java.command=DorisBE 
-XX:-CriticalJNINatives -DJDBC_MIN_POOL=1 -DJDBC_MAX_POOL=100 
-DJDBC_MAX_IDEL_TIME=300000"
                                         ^---------^ 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.
                                                                                
                   ^-------^ SC2250 (style): Prefer putting braces around 
variable references even when not strictly required.
   
   Did you mean: 
   export JAVA_OPTS="-Xmx1024m -DlogPath=${DORIS_HOME}/log/jni.log 
-Xloggc:${DORIS_HOME}/log/be.gc.log.${CUR_DATE} -Dsun.java.command=DorisBE 
-XX:-CriticalJNINatives -DJDBC_MIN_POOL=1 -DJDBC_MAX_POOL=100 
-DJDBC_MAX_IDEL_TIME=300000"
   
   For more information:
     https://www.shellcheck.net/wiki/SC2154 -- MACHINE_OS is referenced but not 
...
     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 ' returned error 1 finding the following formatting issues:
   
   ----------
   --- run-be-ut.sh.orig
   +++ run-be-ut.sh
   @@ -326,7 +326,6 @@
        jdk_version "${JAVA_HOME}/bin/java"
    )"
    
   -
    CUR_DATE=$(date +%Y%m%d-%H%M%S)
    LOG_PATH="-DlogPath=${DORIS_TEST_BINARY_DIR}/log/jni.log"
    COMMON_OPTS="-Dsun.java.command=DorisBETEST -XX:-CriticalJNINatives"
   ----------
   
   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