Error: SHELLCHECK_WARNING (CWE-758): [#def1] /etc/kde/env/env.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive. # 1|-> ## from http://standards.freedesktop.org/menu-spec/latest/ # 2| # 3| # XDG_DATA_DIRS Error: SHELLCHECK_WARNING (CWE-783): [#def2] /etc/kde/env/gpg-agent-startup.sh:16:38: warning[SC2069]: To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify). # 14| GPG_PID_NAME=`ps -p ${GPG_AGENT_PID} -o comm=` # 15| if [ ! "x${GPG_PID_NAME}" = "xgpg-agent" ]; then # 16|-> rm -f "${GPG_AGENT_INFO_FILE}" 2>&1 >/dev/null # 17| else # 18| GPG_SOCKET=`cat "${GPG_AGENT_INFO_FILE}" | cut -f1 -d: | cut -f2 -d=` Error: SHELLCHECK_WARNING (CWE-783): [#def3] /etc/kde/env/gpg-agent-startup.sh:20:41: warning[SC2069]: To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify). # 18| GPG_SOCKET=`cat "${GPG_AGENT_INFO_FILE}" | cut -f1 -d: | cut -f2 -d=` # 19| if ! test -S "${GPG_SOCKET}" -a -O "${GPG_SOCKET}" ; then # 20|-> rm -f "${GPG_AGENT_INFO_FILE}" 2>&1 >/dev/null # 21| fi # 22| fi Error: SHELLCHECK_WARNING (CWE-571): [#def4] /etc/kde/env/gpg-agent-startup.sh:29:12: warning[SC2155]: Declare and assign separately to avoid masking return values. # 27| eval "$(cat "${GPG_AGENT_INFO_FILE}")" # 28| eval "$(cut -d= -f1 < "${GPG_AGENT_INFO_FILE}" | xargs echo export)" # 29|-> export GPG_TTY=$(tty) # 30| else # 31| eval "$(${GPG_AGENT} -s --daemon --write-env-file ${GPG_AGENT_INFO_FILE})" Error: SHELLCHECK_WARNING (CWE-156): [#def5] /etc/kde/env/gpg-agent-startup.sh:29:20: warning[SC2046]: Quote this to prevent word splitting. # 27| eval "$(cat "${GPG_AGENT_INFO_FILE}")" # 28| eval "$(cut -d= -f1 < "${GPG_AGENT_INFO_FILE}" | xargs echo export)" # 29|-> export GPG_TTY=$(tty) # 30| else # 31| eval "$(${GPG_AGENT} -s --daemon --write-env-file ${GPG_AGENT_INFO_FILE})" Error: SHELLCHECK_WARNING (CWE-477): [#def6] /etc/kde/env/gtk2_rc_files.sh:7:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 5| GTK2RC_KDE4_HOME=${HOME}/.gtkrc-2.0-kde4 # 6| # 7|-> if [ -f "${GTK2RC_FILE}" -a -f "${GTK2RC_KDE4}" -a ! -f "${GTK2RC_KDE4_HOME}" ]; then # 8| install -m644 -p "${GTK2RC_KDE4}" "${GTK2RC_KDE4_HOME}" # 9| fi Error: SHELLCHECK_WARNING (CWE-477): [#def7] /etc/kde/env/gtk2_rc_files.sh:7:49: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 5| GTK2RC_KDE4_HOME=${HOME}/.gtkrc-2.0-kde4 # 6| # 7|-> if [ -f "${GTK2RC_FILE}" -a -f "${GTK2RC_KDE4}" -a ! -f "${GTK2RC_KDE4_HOME}" ]; then # 8| install -m644 -p "${GTK2RC_KDE4}" "${GTK2RC_KDE4_HOME}" # 9| fi Error: SHELLCHECK_WARNING (CWE-758): [#def8] /etc/profile.d/kde-openssh-askpass.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive. # 1|-> SSH_ASKPASS=/usr/bin/ksshaskpass # 2| export SSH_ASKPASS Error: SHELLCHECK_WARNING (CWE-758): [#def9] /etc/profile.d/kde.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive. # 1|-> # 2| ## Make sure KDEDIRS is set # 3| [ -z "$KDEDIRS" ] && KDEDIRS="/usr" && export KDEDIRS Error: SHELLCHECK_WARNING (CWE-758): [#def10] /etc/xdg/plasma-workspace/env/env.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive. # 1|-> ## from http://standards.freedesktop.org/menu-spec/latest/ # 2| # 3| # XDG_CONFIG_DIRS Error: SHELLCHECK_WARNING (CWE-477): [#def11] /etc/xdg/plasma-workspace/env/gtk2_rc_files.sh:7:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 5| GTK2RC_KDE4_HOME=${HOME}/.gtkrc-2.0-kde4 # 6| # 7|-> if [ -f "${GTK2RC_FILE}" -a -f "${GTK2RC_KDE4}" -a ! -f "${GTK2RC_KDE4_HOME}" ]; then # 8| install -m644 -p "${GTK2RC_KDE4}" "${GTK2RC_KDE4_HOME}" # 9| fi Error: SHELLCHECK_WARNING (CWE-477): [#def12] /etc/xdg/plasma-workspace/env/gtk2_rc_files.sh:7:49: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 5| GTK2RC_KDE4_HOME=${HOME}/.gtkrc-2.0-kde4 # 6| # 7|-> if [ -f "${GTK2RC_FILE}" -a -f "${GTK2RC_KDE4}" -a ! -f "${GTK2RC_KDE4_HOME}" ]; then # 8| install -m644 -p "${GTK2RC_KDE4}" "${GTK2RC_KDE4_HOME}" # 9| fi Error: SHELLCHECK_WARNING (CWE-758): [#def13] /etc/xdg/plasma-workspace/env/ssh-agent.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive. # 1|-> if [ "$SSH_AUTH_SOCK" = "" ]; then # 2| SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" # 3| export SSH_AUTH_SOCK Error: SHELLCHECK_WARNING (CWE-477): [#def14] /usr/lib/rpm/plasma4.prov:39:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 37| fi # 38| # extra/paranoid sanity check # 39|-> if [ -n "$type" -a -n "$name" ]; then # 40| version=`cat $instfile | grep ^X-KDE-PluginInfo-Version= | cut -d'=' -f2` # 41| if [ -z "$version" ]; then
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-62.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | kde-settings-41.2-1.fc42 |
store-results-to | /tmp/tmptmj2gew9/kde-settings-41.2-1.fc42.tar.xz |
time-created | 2024-11-13 00:32:42 |
time-finished | 2024-11-13 00:33:50 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmptmj2gew9/kde-settings-41.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmptmj2gew9/kde-settings-41.2-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |