Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
crates/lib/src/bootc_composefs/delete.rs:329:27: warning: this `map_or` can be simplified
#      |
#  329 |       let deleting_staged = host
#      |  ___________________________^
#  330 | |         .status
#  331 | |         .staged
#  332 | |         .as_ref()
#  333 | |         .and_then(|s| s.composefs.as_ref())
#  334 | |         .map_or(false, |cfs| cfs.verity == deployment_id);
#      | |_________________________________________________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#      = note: `#[warn(clippy::unnecessary_map_or)]` on by default
#  help: use is_some_and instead
#      |
#  334 -         .map_or(false, |cfs| cfs.verity == deployment_id);
#  334 +         .is_some_and(|cfs| cfs.verity == deployment_id);
#      |

Error: CLIPPY_WARNING: [#def2]
crates/lib/src/bootc_composefs/delete.rs:346:8: warning: taken reference of right operand
#      |
#  346 |     if deployment_id == &booted.verity {
#      |        ^^^^^^^^^^^^^^^^^--------------
#      |                         |
#      |                         help: use the right value directly: `booted.verity`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
#      = note: `#[warn(clippy::op_ref)]` on by default

Error: CLIPPY_WARNING: [#def3]
crates/lib/src/parsers/bls_config.rs:176:46: warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
#      |
#  176 |               BLSConfigType::EFI { efi } => Ok(efi
#      |  ______________________________________________^
#  177 | |                 .components()
#  178 | |                 .last()
#      | |__________________-----^
#      |                    |
#      |                    help: try: `next_back()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last

Error: CLIPPY_WARNING: [#def4]
crates/lib/src/parsers/grub_menuconfig.rs:109:12: warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
#      |
#  109 |           Ok(to_path
#      |  ____________^
#  110 | |             .components()
#  111 | |             .last()
#      | |______________-----^
#      |                |
#      |                help: try: `next_back()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.90.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-6.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202510271856.g37fa085be9-1
diffbase-store-results-to/tmp/tmpjylod6t6/bootc-202510271856.g37fa085be9-1.tar.xz
diffbase-time-created2025-10-28 10:45:40
diffbase-time-finished2025-10-28 10:58:26
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpjylod6t6/bootc-202510271856.g37fa085be9-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpjylod6t6/bootc-202510271856.g37fa085be9-1.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-6.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebootc-202510281015.g90b88f94b0-1
store-results-to/tmp/tmphz0mv4l7/bootc-202510281015.g90b88f94b0-1.tar.xz
time-created2025-10-28 10:58:53
time-finished2025-10-28 11:11:07
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmphz0mv4l7/bootc-202510281015.g90b88f94b0-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmphz0mv4l7/bootc-202510281015.g90b88f94b0-1.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9