Error: SHELLCHECK_WARNING (CWE-398): [#def1] /etc/profile.d/lang.sh:1:1: error[SC1008]: This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh/'busybox sh'. Add a 'shell' directive to specify. # 1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback # 2| # for CJK languages that can't be displayed in console. # 3| # Resets the locale if unavailable. Error: SHELLCHECK_WARNING (CWE-398): [#def2] /etc/profile.d/lang.sh:1:1: error[SC2096]: On most OS, shebangs can only specify a single parameter. # 1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback # 2| # for CJK languages that can't be displayed in console. # 3| # Resets the locale if unavailable. Error: SHELLCHECK_WARNING (CWE-398): [#def3] /etc/profile.d/lang.sh:1:2: error[SC1113]: Use #!, not just #, for the shebang. # 1|-> # /etc/profile.d/lang.sh - exports environment variables, and provides fallback # 2| # for CJK languages that can't be displayed in console. # 3| # Resets the locale if unavailable. Error: SHELLCHECK_WARNING (CWE-563): [#def4] /etc/profile.d/lang.sh:19:5: warning[SC2034]: LC_PAPER appears unused. Verify use (or export if used externally). # 17| LC_MONETARY="C.UTF-8" # 18| LC_MESSAGES="C.UTF-8" # 19|-> LC_PAPER="C.UTF-8" # 20| LC_NAME="C.UTF-8" # 21| LC_ADDRESS="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def5] /etc/profile.d/lang.sh:20:5: warning[SC2034]: LC_NAME appears unused. Verify use (or export if used externally). # 18| LC_MESSAGES="C.UTF-8" # 19| LC_PAPER="C.UTF-8" # 20|-> LC_NAME="C.UTF-8" # 21| LC_ADDRESS="C.UTF-8" # 22| LC_TELEPHONE="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def6] /etc/profile.d/lang.sh:21:5: warning[SC2034]: LC_ADDRESS appears unused. Verify use (or export if used externally). # 19| LC_PAPER="C.UTF-8" # 20| LC_NAME="C.UTF-8" # 21|-> LC_ADDRESS="C.UTF-8" # 22| LC_TELEPHONE="C.UTF-8" # 23| LC_MEASUREMENT="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def7] /etc/profile.d/lang.sh:22:5: warning[SC2034]: LC_TELEPHONE appears unused. Verify use (or export if used externally). # 20| LC_NAME="C.UTF-8" # 21| LC_ADDRESS="C.UTF-8" # 22|-> LC_TELEPHONE="C.UTF-8" # 23| LC_MEASUREMENT="C.UTF-8" # 24| LC_IDENTIFICATION="C.UTF-8" Error: SHELLCHECK_WARNING (CWE-563): [#def8] /etc/profile.d/lang.sh:23:5: warning[SC2034]: LC_MEASUREMENT appears unused. Verify use (or export if used externally). # 21| LC_ADDRESS="C.UTF-8" # 22| LC_TELEPHONE="C.UTF-8" # 23|-> LC_MEASUREMENT="C.UTF-8" # 24| LC_IDENTIFICATION="C.UTF-8" # 25| else Error: SHELLCHECK_WARNING (CWE-563): [#def9] /etc/profile.d/lang.sh:24:5: warning[SC2034]: LC_IDENTIFICATION appears unused. Verify use (or export if used externally). # 22| LC_TELEPHONE="C.UTF-8" # 23| LC_MEASUREMENT="C.UTF-8" # 24|-> LC_IDENTIFICATION="C.UTF-8" # 25| else # 26| LANG_backup="${LANG}" Error: SHELLCHECK_WARNING (CWE-156): [#def10] /etc/profile.d/lang.sh:33:18: warning[SC2046]: Quote this to prevent word splitting. # 31| # NOTE: We are using eval & sed here to avoid invoking of any commands & functions from those files. # 32| if [ -x /usr/bin/sed ]; then # 33|-> eval $(/usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' ${config}) # 34| else # 35| #but if we don't have sed, let's go old way and source it Error: SHELLCHECK_WARNING (CWE-477): [#def11] /etc/profile.d/lang.sh:53:35: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 51| # See 'man 7 locale' for more info about LC_ALL. # 52| if [ -n "${LC_ALL}" ]; then # 53|-> if [ "${LC_ALL}" != "${LANG}" -a -n "${LANG}" ]; then # 54| export LC_ALL # 55| else
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 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-7.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 | setup-2.15.0-23.fc43 |
store-results-to | /tmp/tmpmx8n9t3x/setup-2.15.0-23.fc43.tar.xz |
time-created | 2025-04-25 15:36:26 |
time-finished | 2025-04-25 15:37:28 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpmx8n9t3x/setup-2.15.0-23.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmx8n9t3x/setup-2.15.0-23.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |