Error: SHELLCHECK_WARNING (CWE-477): [#def1] /usr/bin/gpgrt-config:250:18: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 248| # 249| arg1_is_same () { # 250|-> [ "$1" = "=" -o "$1" = ">=" -o "$1" = "<=" ] # 251| } # 252| Error: SHELLCHECK_WARNING (CWE-477): [#def2] /usr/bin/gpgrt-config:250:33: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 248| # 249| arg1_is_same () { # 250|-> [ "$1" = "=" -o "$1" = ">=" -o "$1" = "<=" ] # 251| } # 252| Error: SHELLCHECK_WARNING (CWE-477): [#def3] /usr/bin/gpgrt-config:254:19: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 252| # 253| arg1_is_less () { # 254|-> [ "$1" = "!=" -o "$1" = "<" -o "$1" = "<=" ] # 255| } # 256| Error: SHELLCHECK_WARNING (CWE-477): [#def4] /usr/bin/gpgrt-config:254:33: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 252| # 253| arg1_is_less () { # 254|-> [ "$1" = "!=" -o "$1" = "<" -o "$1" = "<=" ] # 255| } # 256| Error: SHELLCHECK_WARNING (CWE-477): [#def5] /usr/bin/gpgrt-config:258:19: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 256| # 257| arg1_is_great () { # 258|-> [ "$1" = "!=" -o "$1" = ">" -o "$1" = ">=" ] # 259| } # 260| Error: SHELLCHECK_WARNING (CWE-477): [#def6] /usr/bin/gpgrt-config:258:33: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 256| # 257| arg1_is_great () { # 258|-> [ "$1" = "!=" -o "$1" = ">" -o "$1" = ">=" ] # 259| } # 260| Error: SHELLCHECK_WARNING (CWE-477): [#def7] /usr/bin/gpgrt-config:273:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 271| ___chunk2="" # 272| # 273|-> while [ -n "$___str1" -a -n "$___str2" ]; do # 274| # Trim anything that's not alnum or tilde from the front # 275| ___str1="$(expr "$___str1" : '[^0-9A-Za-z~]*\(.*\)')" Error: SHELLCHECK_WARNING (CWE-477): [#def8] /usr/bin/gpgrt-config:282:23: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 280| ___char2=${___str2%${___str2#?}} # 281| # 282|-> if [ "$___char1" = ~ -o "$___char2" = ~ ]; then # 283| if [ "$___char1" != ~ ]; then # 284| arg1_is_great $___cmp Error: SHELLCHECK_WARNING (CWE-477): [#def9] /usr/bin/gpgrt-config:296:22: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 294| fi # 295| # 296|-> if [ -z "$___char1" -o -z "$___char2" ]; then # 297| break # 298| fi Error: SHELLCHECK_WARNING (CWE-477): [#def10] /usr/bin/gpgrt-config:694:21: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 692| done # 693| # 694|-> if [ -z "$want_var" -a -z "$want_attr" ]; then # 695| if [ -n "$want_cflags" ]; then # 696| output="$output${output:+ }$(sysroot -I $(list_only_once $cflags))" Error: SHELLCHECK_WARNING (CWE-477): [#def11] /usr/bin/gpgrt-config:698:17: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 696| output="$output${output:+ }$(sysroot -I $(list_only_once $cflags))" # 697| # Backward compatibility to old gpg-error-config # 698|-> if [ $mt = yes -a -n "$mtcflags" ]; then # 699| output="$output${output:+ }$mtcflags" # 700| fi Error: SHELLCHECK_WARNING (CWE-477): [#def12] /usr/bin/gpgrt-config:705:17: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. # 703| output="$output${output:+ }$(sysroot -L $(list_only_once_for_libs $libs))" # 704| # Backward compatibility to old gpg-error-config # 705|-> if [ $mt = yes -a -n "$mtlibs" ]; then # 706| output="$output${output:+ }$mtlibs" # 707| fi
| 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-92.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 | libgpg-error-1.56-1.fc44 |
| diffbase-store-results-to | /tmp/tmpyhulodol/libgpg-error-1.56-1.fc44.tar.xz |
| diffbase-time-created | 2025-10-28 18:58:19 |
| diffbase-time-finished | 2025-10-28 19:00:20 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpyhulodol/libgpg-error-1.56-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/tmpyhulodol/libgpg-error-1.56-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-92.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 | libgpg-error-1.55-2.fc43 |
| store-results-to | /tmp/tmpgnnd0x_f/libgpg-error-1.55-2.fc43.tar.xz |
| time-created | 2025-10-28 18:55:35 |
| time-finished | 2025-10-28 18:58:03 |
| 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/tmpgnnd0x_f/libgpg-error-1.55-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/tmpgnnd0x_f/libgpg-error-1.55-2.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |