Error: SHELLCHECK_WARNING (CWE-477): [#def1] /usr/libexec/livesys/livesys-main:29:39: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 27| . /etc/sysconfig/livesys # 28| # 29|-> if [ "${livesys_session}" = "gnome" -a -d /var/lib/gnome-initial-setup/ ]; then # 30| autouser=0 # 31| fi Error: SHELLCHECK_WARNING (CWE-477): [#def2] /usr/libexec/livesys/sessions.d/livesys-gnome:83:57: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 81| # 82| # set up auto-login if it's a non-persistent boot # 83|-> if [ "${cmdline##* rd.live.overlay[= ]}" != "$cmdline" -o ! -d /var/lib/gnome-initial-setup ]; then # 84| cat > /etc/gdm/custom.conf <<- " FOE" # 85| [daemon] Error: SHELLCHECK_WARNING (CWE-829): [#def3] /usr/libexec/livesys/sessions.d/livesys-kde:9:4: warning[SC2091]: Remove surrounding $() to avoid executing output (or use eval if intentional). # 7| # 8| # set up autologin for user liveuser # 9|-> if $(rpm -q plasma-mobile > /dev/null 2>&1) ; then # 10| DEFAULT_DESKTOP="plasma-mobile.desktop" # 11| IS_MOBILE=1 Error: SHELLCHECK_WARNING: [#def4] /usr/libexec/livesys/sessions.d/livesys-kde:9:4: warning[SC2327]: This command substitution will be empty because the command's output gets redirected away. # 7| # 8| # set up autologin for user liveuser # 9|-> if $(rpm -q plasma-mobile > /dev/null 2>&1) ; then # 10| DEFAULT_DESKTOP="plasma-mobile.desktop" # 11| IS_MOBILE=1 Error: SHELLCHECK_WARNING: [#def5] /usr/libexec/livesys/sessions.d/livesys-kde:9:27: error[SC2328]: This redirection takes output away from the command substitution. # 7| # 8| # set up autologin for user liveuser # 9|-> if $(rpm -q plasma-mobile > /dev/null 2>&1) ; then # 10| DEFAULT_DESKTOP="plasma-mobile.desktop" # 11| IS_MOBILE=1 Error: SHELLCHECK_WARNING (CWE-829): [#def6] /usr/libexec/livesys/sessions.d/livesys-lxqt:9:4: warning[SC2091]: Remove surrounding $() to avoid executing output (or use eval if intentional). # 7| # 8| # determine if wayland session is available # 9|-> if $(rpm -q lxqt-wayland-session > /dev/null 2>&1) ; then # 10| DEFAULT_DESKTOP="lxqt-wayland.desktop" # 11| else Error: SHELLCHECK_WARNING: [#def7] /usr/libexec/livesys/sessions.d/livesys-lxqt:9:4: warning[SC2327]: This command substitution will be empty because the command's output gets redirected away. # 7| # 8| # determine if wayland session is available # 9|-> if $(rpm -q lxqt-wayland-session > /dev/null 2>&1) ; then # 10| DEFAULT_DESKTOP="lxqt-wayland.desktop" # 11| else Error: SHELLCHECK_WARNING: [#def8] /usr/libexec/livesys/sessions.d/livesys-lxqt:9:34: error[SC2328]: This redirection takes output away from the command substitution. # 7| # 8| # determine if wayland session is available # 9|-> if $(rpm -q lxqt-wayland-session > /dev/null 2>&1) ; then # 10| DEFAULT_DESKTOP="lxqt-wayland.desktop" # 11| else
| 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-12.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 | livesys-scripts-0.8.0-3.fc44 |
| store-results-to | /tmp/tmplvvelcge/livesys-scripts-0.8.0-3.fc44.tar.xz |
| time-created | 2025-10-28 19:17:08 |
| time-finished | 2025-10-28 19:18:18 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmplvvelcge/livesys-scripts-0.8.0-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmplvvelcge/livesys-scripts-0.8.0-3.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |