Error: SHELLCHECK_WARNING (CWE-252): [#def1] /usr/bin/qt-cmake:5:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 3| # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory. # 4| script_dir_path=`dirname $0` # 5|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 6| # 7| # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH. Error: SHELLCHECK_WARNING (CWE-252): [#def2] /usr/bin/qt-cmake-create:8:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 6| # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory. # 7| script_dir_path=`dirname $0` # 8|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 9| # 10| # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH. Error: SHELLCHECK_WARNING (CWE-569): [#def3] /usr/bin/qt-configure-module:18:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 16| determineOptFilePath() # 17| { # 18|-> > "${outpathPrefix}/config.redo.in" # 19| set -f # suppress globbing in for loop # 20| for i in "$@"; do Error: SHELLCHECK_WARNING (CWE-569): [#def4] /usr/bin/qt-configure-module:76:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 74| fresh_requested_arg= # 75| if [ -z "$optfile" ]; then # only write optfile if not currently redoing # 76|-> > "$opttmpfilepath" # 77| > "$redotmpfilepath" # 78| Error: SHELLCHECK_WARNING (CWE-569): [#def5] /usr/bin/qt-configure-module:77:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 75| if [ -z "$optfile" ]; then # only write optfile if not currently redoing # 76| > "$opttmpfilepath" # 77|-> > "$redotmpfilepath" # 78| # 79| for arg in "$@"; do echo \"$arg\" >> "$opttmpfilepath"; done Error: SHELLCHECK_WARNING (CWE-569): [#def6] /usr/bin/qt-configure-module:86:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 84| else # 85| # Rewriting config.opt into config.opt.in anyway. Allows for direct manipulation of config.opt # 86|-> > "$opttmpfilepath" # 87| for arg in `cat $optfile`; do echo \"$arg\" >> "$opttmpfilepath"; done # 88| Error: SHELLCHECK_WARNING (CWE-563): [#def7] /usr/bin/qt-configure-module:93:5: warning[SC2034]: fresh_requested_arg appears unused. Verify use (or export if used externally). # 91| -P "$script_dir_path/../../cmake/Qt6/QtWriteArgsFile.cmake" # 92| optfilepath=${redofilepath} # 93|-> fresh_requested_arg=-DFRESH_REQUESTED=TRUE # 94| fi # 95| Error: SHELLCHECK_WARNING (CWE-252): [#def8] /usr/lib64/qt6/bin/qt-cmake:5:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 3| # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory. # 4| script_dir_path=`dirname $0` # 5|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 6| # 7| # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH. Error: SHELLCHECK_WARNING (CWE-252): [#def9] /usr/lib64/qt6/bin/qt-cmake-create:8:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 6| # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory. # 7| script_dir_path=`dirname $0` # 8|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 9| # 10| # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH. Error: SHELLCHECK_WARNING (CWE-569): [#def10] /usr/lib64/qt6/bin/qt-configure-module:18:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 16| determineOptFilePath() # 17| { # 18|-> > "${outpathPrefix}/config.redo.in" # 19| set -f # suppress globbing in for loop # 20| for i in "$@"; do Error: SHELLCHECK_WARNING (CWE-569): [#def11] /usr/lib64/qt6/bin/qt-configure-module:76:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 74| fresh_requested_arg= # 75| if [ -z "$optfile" ]; then # only write optfile if not currently redoing # 76|-> > "$opttmpfilepath" # 77| > "$redotmpfilepath" # 78| Error: SHELLCHECK_WARNING (CWE-569): [#def12] /usr/lib64/qt6/bin/qt-configure-module:77:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 75| if [ -z "$optfile" ]; then # only write optfile if not currently redoing # 76| > "$opttmpfilepath" # 77|-> > "$redotmpfilepath" # 78| # 79| for arg in "$@"; do echo \"$arg\" >> "$opttmpfilepath"; done Error: SHELLCHECK_WARNING (CWE-569): [#def13] /usr/lib64/qt6/bin/qt-configure-module:86:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op). # 84| else # 85| # Rewriting config.opt into config.opt.in anyway. Allows for direct manipulation of config.opt # 86|-> > "$opttmpfilepath" # 87| for arg in `cat $optfile`; do echo \"$arg\" >> "$opttmpfilepath"; done # 88| Error: SHELLCHECK_WARNING (CWE-563): [#def14] /usr/lib64/qt6/bin/qt-configure-module:93:5: warning[SC2034]: fresh_requested_arg appears unused. Verify use (or export if used externally). # 91| -P "$script_dir_path/../../cmake/Qt6/QtWriteArgsFile.cmake" # 92| optfilepath=${redofilepath} # 93|-> fresh_requested_arg=-DFRESH_REQUESTED=TRUE # 94| fi # 95| Error: SHELLCHECK_WARNING (CWE-252): [#def15] /usr/lib64/qt6/libexec/qt-cmake-private:5:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 3| # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory. # 4| script_dir_path=`dirname $0` # 5|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 6| # 7| # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH. Error: SHELLCHECK_WARNING (CWE-252): [#def16] /usr/lib64/qt6/libexec/qt-internal-configure-examples:3:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 1| #!/usr/bin/sh # 2| script_dir_path=`dirname $0` # 3|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 4| # 5| "$script_dir_path/../bin/qt-cmake" -DQT_BUILD_STANDALONE_EXAMPLES=ON -DQT_BUILD_TESTS=OFF -DQT_USE_ORIGINAL_COMPILER=ON "$@" Error: SHELLCHECK_WARNING (CWE-252): [#def17] /usr/lib64/qt6/libexec/qt-internal-configure-tests:3:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 1| #!/usr/bin/sh # 2| script_dir_path=`dirname $0` # 3|-> script_dir_path=`(cd "$script_dir_path"; pwd)` # 4| # 5| "$script_dir_path/../bin/qt-cmake" -DQT_BUILD_STANDALONE_TESTS=ON -DQT_BUILD_EXAMPLES=OFF -DQT_USE_ORIGINAL_COMPILER=ON "$@"
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.86.0 |
diffbase-analyzer-version-cppcheck | 2.17.1 |
diffbase-analyzer-version-gcc | 15.0.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-226.us-west-2.compute.internal |
diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
diffbase-mock-config | fedora-rawhide-x86_64 |
diffbase-project-name | qt6-qtbase-6.8.2-3.fc42 |
diffbase-store-results-to | /tmp/tmp27r4jrzq/qt6-qtbase-6.8.2-3.fc42.tar.xz |
diffbase-time-created | 2025-04-25 15:16:05 |
diffbase-time-finished | 2025-04-25 15:40:14 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp27r4jrzq/qt6-qtbase-6.8.2-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp27r4jrzq/qt6-qtbase-6.8.2-3.fc42.src.rpm' |
diffbase-tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-226.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | qt6-qtbase-6.9.0-1.fc43 |
store-results-to | /tmp/tmpbcjda_h6/qt6-qtbase-6.9.0-1.fc43.tar.xz |
time-created | 2025-04-25 15:40:50 |
time-finished | 2025-04-25 16:05:36 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpbcjda_h6/qt6-qtbase-6.9.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbcjda_h6/qt6-qtbase-6.9.0-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |