kde-settings-41.2-1.fc42

List of Findings

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

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-62.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekde-settings-41.2-1.fc42
store-results-to/tmp/tmptmj2gew9/kde-settings-41.2-1.fc42.tar.xz
time-created2024-11-13 00:32:42
time-finished2024-11-13 00:33:50
toolcsmock
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-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9