Fixed findings

List of Findings

Error: SHELLCHECK_WARNING (CWE-252): [#def1]
/usr/bin/copr-update-builder:22:3: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#   20|   # And now use the overrides from %mock_config_overrides directory
#   21|   (
#   22|->   cd /etc/copr-rpmbuild/mock-config-overrides
#   23|     find . -name '*.tpl' -o -name '*.cfg' | while read -r file; do
#   24|       base=$(basename "$file")

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/copr-update-builder:24:5: warning[SC2034]: base appears unused. Verify use (or export if used externally).
#   22|     cd /etc/copr-rpmbuild/mock-config-overrides
#   23|     find . -name '*.tpl' -o -name '*.cfg' | while read -r file; do
#   24|->     base=$(basename "$file")
#   25|       dir=/etc/mock/$(dirname "$file")
#   26|       mkdir -p "$dir"

Scan Properties

analyzer-version-clippy1.84.1
analyzer-version-cppcheck2.16.2
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.84.1
diffbase-analyzer-version-cppcheck2.16.2
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-129.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecopr-frontend-2.1-1.20250210134700443198.pr2.4841.g9860d2a94
diffbase-store-results-to/tmp/tmpi9vm30cb/copr-frontend-2.1-1.20250210134700443198.pr2.4841.g9860d2a94.tar.xz
diffbase-time-created2025-02-10 13:53:32
diffbase-time-finished2025-02-10 13:54:54
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpi9vm30cb/copr-frontend-2.1-1.20250210134700443198.pr2.4841.g9860d2a94.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpi9vm30cb/copr-frontend-2.1-1.20250210134700443198.pr2.4841.g9860d2a94.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-129.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecopr-rpmbuild-1.2-1.20250203115347477291.main.51.gcacc58381
store-results-to/tmp/tmp4ktz9_s8/copr-rpmbuild-1.2-1.20250203115347477291.main.51.gcacc58381.tar.xz
time-created2025-02-10 13:51:26
time-finished2025-02-10 13:53:12
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmp4ktz9_s8/copr-rpmbuild-1.2-1.20250203115347477291.main.51.gcacc58381.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp4ktz9_s8/copr-rpmbuild-1.2-1.20250203115347477291.main.51.gcacc58381.src.rpm'
tool-versioncsmock-3.8.0-1.el9