Error: SHELLCHECK_WARNING (CWE-480): [#def1] /usr/bin/genfstab:103:11: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 101| # 102| mangle() { # 103|-> local i= chr= out= # 104| local {a..f}= {A..F}= # 105| Error: SHELLCHECK_WARNING (CWE-480): [#def2] /usr/bin/genfstab:103:16: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 101| # 102| mangle() { # 103|-> local i= chr= out= # 104| local {a..f}= {A..F}= # 105| Error: SHELLCHECK_WARNING (CWE-480): [#def3] /usr/bin/genfstab:121:11: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 119| # 120| unmangle() { # 121|-> local i= chr= out= len=$(( ${#1} - 4 )) # 122| local {a..f}= {A..F}= # 123| Error: SHELLCHECK_WARNING (CWE-480): [#def4] /usr/bin/genfstab:121:16: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 119| # 120| unmangle() { # 121|-> local i= chr= out= len=$(( ${#1} - 4 )) # 122| local {a..f}= {A..F}= # 123| Error: SHELLCHECK_WARNING (CWE-480): [#def5] /usr/bin/genfstab:121:21: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 119| # 120| unmangle() { # 121|-> local i= chr= out= len=$(( ${#1} - 4 )) # 122| local {a..f}= {A..F}= # 123| Error: SHELLCHECK_WARNING (CWE-398): [#def6] /usr/bin/genfstab:195:9: warning[SC2178]: Variable was used as an array but is now assigned a string. # 193| # 194| optstring_prepend_option() { # 195|-> local options_=$1 # 196| # 197| if ! optstring_has_option "$1" "$2"; then Error: SHELLCHECK_WARNING (CWE-480): [#def7] /usr/bin/genfstab:245:21: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 243| # 244| write_source() { # 245|-> local src=$1 spec= label= uuid= comment=() # 246| # 247| label=$(lsblk -rno LABEL "$1" 2>/dev/null) Error: SHELLCHECK_WARNING (CWE-480): [#def8] /usr/bin/genfstab:245:28: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 243| # 244| write_source() { # 245|-> local src=$1 spec= label= uuid= comment=() # 246| # 247| label=$(lsblk -rno LABEL "$1" 2>/dev/null) Error: SHELLCHECK_WARNING (CWE-480): [#def9] /usr/bin/genfstab:245:34: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 243| # 244| write_source() { # 245|-> local src=$1 spec= label= uuid= comment=() # 246| # 247| label=$(lsblk -rno LABEL "$1" 2>/dev/null) Error: SHELLCHECK_WARNING (CWE-670): [#def10] /usr/bin/genfstab:273:6: warning[SC2128]: Expanding an array without an index only gives the first element. # 271| esac # 272| # 273|-> [[ $comment ]] && printf '# %s\n' "${comment[*]}" # 274| # 275| if [[ $spec ]]; then Error: SHELLCHECK_WARNING (CWE-457): [#def11] /usr/bin/genfstab:317:57: warning[SC2154]: codepage is referenced but not assigned. # 315| vfat) # 316| # Before Linux v3.8, "cp" is prepended to the value of the codepage. # 317|-> if optstring_get_option "$varname" codepage && [[ $codepage = cp* ]]; then # 318| optstring_remove_option "$varname" codepage # 319| optstring_append_option "$varname" "codepage=${codepage#cp}"
| 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 |
| diffbase-analyzer-version-clippy | 1.90.0 |
| diffbase-analyzer-version-cppcheck | 2.18.3 |
| diffbase-analyzer-version-gcc | 15.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-99.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
| diffbase-project-name | arch-install-scripts-31-1.fc44 |
| diffbase-store-results-to | /tmp/tmpak40dnkn/arch-install-scripts-31-1.fc44.tar.xz |
| diffbase-time-created | 2025-10-28 17:21:40 |
| diffbase-time-finished | 2025-10-28 17:22:53 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpak40dnkn/arch-install-scripts-31-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpak40dnkn/arch-install-scripts-31-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-99.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 | arch-install-scripts-29-2.fc43 |
| store-results-to | /tmp/tmp0n3jrh9_/arch-install-scripts-29-2.fc43.tar.xz |
| time-created | 2025-10-28 17:19:36 |
| time-finished | 2025-10-28 17:21:19 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp0n3jrh9_/arch-install-scripts-29-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp0n3jrh9_/arch-install-scripts-29-2.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |