Error: SHELLCHECK_WARNING: [#def1] /usr/bin/startlxqtwayland:6:5: warning[SC3043]: In POSIX sh, 'local' is undefined. # 4| contains() # 5| { # 6|-> local str="$1" substr="$2" # 7| [ "$str" = "$substr" -o -z "${str##$substr:*}" -o -z "${str##*:$substr:*}" -o -z "${str%%*:$substr}" ] # 8| } Error: SHELLCHECK_WARNING (CWE-477): [#def2] /usr/bin/startlxqtwayland:7:26: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 5| { # 6| local str="$1" substr="$2" # 7|-> [ "$str" = "$substr" -o -z "${str##$substr:*}" -o -z "${str##*:$substr:*}" -o -z "${str%%*:$substr}" ] # 8| } # 9| Error: SHELLCHECK_WARNING (CWE-477): [#def3] /usr/bin/startlxqtwayland:7:52: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 5| { # 6| local str="$1" substr="$2" # 7|-> [ "$str" = "$substr" -o -z "${str##$substr:*}" -o -z "${str##*:$substr:*}" -o -z "${str%%*:$substr}" ] # 8| } # 9| Error: SHELLCHECK_WARNING (CWE-477): [#def4] /usr/bin/startlxqtwayland:7:80: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 5| { # 6| local str="$1" substr="$2" # 7|-> [ "$str" = "$substr" -o -z "${str##$substr:*}" -o -z "${str##*:$substr:*}" -o -z "${str%%*:$substr}" ] # 8| } # 9| Error: SHELLCHECK_WARNING: [#def5] /usr/bin/startlxqtwayland:49:76: warning[SC3067]: In POSIX sh, test -O is undefined. # 47| # Launch DBus if needed # 48| if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then # 49|-> if [ -z "$XDG_RUNTIME_DIR" ] || ! [ -S "$XDG_RUNTIME_DIR/bus" ] || ! [ -O "$XDG_RUNTIME_DIR/bus" ]; then # 50| eval "$(dbus-launch --sh-syntax --exit-with-session)" || echo "startlxqtwayland: error executing dbus-launch" >&2 # 51| fi Error: SHELLCHECK_WARNING (CWE-156): [#def6] /usr/bin/startlxqtwayland:68:22: warning[SC2046]: Quote this to prevent word splitting. # 66| export XDG_MENU_PREFIX="lxqt-" # 67| # 68|-> share_dir="$(dirname $(dirname "$0"))"/share # 69| # 70| if [ ! -d "$XDG_CONFIG_HOME/lxqt/wayland" ]; then Error: SHELLCHECK_WARNING (CWE-156): [#def7] /usr/bin/startlxqtwayland:186:13: warning[SC2046]: Quote this to prevent word splitting. # 184| fi # 185| # workaround for cursor # 186|-> export X$(cat $XDG_CONFIG_HOME/lxqt/session.conf|grep cursor_size| tr 'a-z' 'A-Z') # 187| export X$(cat $XDG_CONFIG_HOME/lxqt/session.conf|grep cursor_theme| tr 'a-z' 'A-Z') # 188| exec $COMPOSITOR -c $XDG_CONFIG_HOME/lxqt/wayland/lxqt-hyprland.conf Error: SHELLCHECK_WARNING (CWE-156): [#def8] /usr/bin/startlxqtwayland:187:13: warning[SC2046]: Quote this to prevent word splitting. # 185| # workaround for cursor # 186| export X$(cat $XDG_CONFIG_HOME/lxqt/session.conf|grep cursor_size| tr 'a-z' 'A-Z') # 187|-> export X$(cat $XDG_CONFIG_HOME/lxqt/session.conf|grep cursor_theme| tr 'a-z' 'A-Z') # 188| exec $COMPOSITOR -c $XDG_CONFIG_HOME/lxqt/wayland/lxqt-hyprland.conf # 189| Error: SHELLCHECK_WARNING: [#def9] /usr/share/lxqt/wayland/miriway/lxqt-miriway-wrapper:8:5: warning[SC3039]: In POSIX sh, 'let' is undefined. # 6| port=0 # 7| while [ -e "${XDG_RUNTIME_DIR}/wayland-${port}" ]; do # 8|-> let port+=1 # 9| done # 10| wayland_display=wayland-${port} Error: SHELLCHECK_WARNING: [#def10] /usr/share/lxqt/wayland/miriway/lxqt-miriway-wrapper:41:9: warning[SC3067]: In POSIX sh, test -O is undefined. # 39| # 40| # Wait until the server starts # 41|-> until [ -O "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}" ] # 42| do # 43| if ! kill -0 ${miriway_pid} &> /dev/null Error: SHELLCHECK_WARNING: [#def11] /usr/share/lxqt/wayland/miriway/lxqt-miriway-wrapper:43:31: warning[SC3020]: In POSIX sh, &> is undefined. # 41| until [ -O "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}" ] # 42| do # 43|-> if ! kill -0 ${miriway_pid} &> /dev/null # 44| then # 45| echo "ERROR: miriway-shell [pid=${miriway_pid}] is not running"
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-164.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | lxqt-wayland-session-0.2.1-2.fc44 |
| store-results-to | /tmp/tmpye_n653e/lxqt-wayland-session-0.2.1-2.fc44.tar.xz |
| time-created | 2025-10-28 19:23:58 |
| time-finished | 2025-10-28 19:25:17 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpye_n653e/lxqt-wayland-session-0.2.1-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpye_n653e/lxqt-wayland-session-0.2.1-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |