hiroyuki-sato opened a new issue, #50773:
URL: https://github.com/apache/arrow/issues/50773

   ### Describe the enhancement requested
   
   This is the sub issue #44748.
   
   * SC2155: Declare and assign separately to avoid masking return values.
   * SC2086: Double quote to prevent globbing and word splitting.
   * SC2223: This default assignment may cause DoS due to globbing. Quote it.
   
   ```
   shellcheck ci/scripts/r_sanitize.sh
   
   In ci/scripts/r_sanitize.sh line 21:
   : ${R_BIN:=RDsan}
     ^-------------^ SC2223 (info): This default assignment may cause DoS due 
to globbing. Quote it.
   
   
   In ci/scripts/r_sanitize.sh line 26:
   pushd ${source_dir}
         ^-----------^ SC2086 (info): Double quote to prevent globbing and word 
splitting.
   
   Did you mean:
   pushd "${source_dir}"
   
   
   In ci/scripts/r_sanitize.sh line 36:
   echo "MAKEFLAGS=-j${ncores}" >> ${rhome}/etc/Renviron.site
                                   ^------^ SC2086 (info): Double quote to 
prevent globbing and word splitting.
   
   Did you mean:
   echo "MAKEFLAGS=-j${ncores}" >> "${rhome}"/etc/Renviron.site
   
   
   In ci/scripts/r_sanitize.sh line 50:
   export SUPPRESSION_FILE=$(readlink -f "tools/ubsan.supp")
          ^--------------^ SC2155 (warning): Declare and assign separately to 
avoid masking return values.
   
   For more information:
     https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to 
...
     https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing 
...
     https://www.shellcheck.net/wiki/SC2223 -- This default assignment may 
cause...
   ```  
   
   
   ### Component(s)
   
   Continuous Integration


-- 
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]

Reply via email to