Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
crates/xtask/src/anaconda.rs:833:9: warning: this `if` statement can be collapsed
#      |
#  833 | /         if stage == InstallStage::Booting {
#  834 | |             if anaconda_new.contains(PATTERN_ANACONDA_STARTED) || serial_new.contains("anaconda") {
#  835 | |                 stage = InstallStage::AnacondaStarting;
#  836 | |                 stage_start = Instant::now();
#  837 | |             }
#  838 | |         }
#      | |_________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#collapsible_if
#      = note: `#[warn(clippy::collapsible_if)]` on by default
#  help: collapse nested if block
#      |
#  833 ~         if stage == InstallStage::Booting
#  834 ~             && (anaconda_new.contains(PATTERN_ANACONDA_STARTED) || serial_new.contains("anaconda")) {
#  835 |                 stage = InstallStage::AnacondaStarting;
#  836 |                 stage_start = Instant::now();
#  837 ~             }
#      |

Error: CLIPPY_WARNING: [#def2]
crates/xtask/src/anaconda.rs:849:9: warning: this `if` statement can be collapsed
#      |
#  849 | /         if stage == InstallStage::Installing {
#  850 | |             if serial_new.contains(PATTERN_INSTALL_COMPLETE)
#  851 | |                 || serial_new.contains("reboot: Restarting")
#  ...   |
#  856 | |         }
#      | |_________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#collapsible_if
#  help: collapse nested if block
#      |
#  849 ~         if stage == InstallStage::Installing
#  850 ~             && (serial_new.contains(PATTERN_INSTALL_COMPLETE)
#  851 ~                 || serial_new.contains("reboot: Restarting"))
#  852 |             {
#  853 |                 stage = InstallStage::Rebooting;
#  854 |                 stage_start = Instant::now();
#  855 ~             }
#      |

Error: CLIPPY_WARNING: [#def3]
crates/xtask/src/anaconda.rs:931:5: warning: unnecessary `if let` since only the `Ok` variant of the iterator element is used
#      |
#  931 | /     for line in reader.lines() {
#  932 | |         if let Ok(line) = line {
#  933 | |             content.push_str(&line);
#  934 | |             content.push('\n');
#  935 | |         }
#  936 | |     }
#      | |_____^
#      |
#  help: try `.flatten()` and remove the `if let` statement in the for loop
#     --> crates/xtask/src/anaconda.rs:932:9
#      |
#  932 | /         if let Ok(line) = line {
#  933 | |             content.push_str(&line);
#  934 | |             content.push('\n');
#  935 | |         }
#      | |_________^
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#manual_flatten
#      = note: `#[warn(clippy::manual_flatten)]` on by default
#  help: try
#      |
#  931 ~     for line in reader.lines().flatten() {
#  932 +         content.push_str(&line);
#  933 +         content.push('\n');
#  934 +     }
#      |

Error: CLIPPY_WARNING: [#def4]
crates/xtask/src/anaconda.rs:946:34: warning: use of a disallowed method `str::len`
#      |
#  946 |         let end = (idx + pattern.len() + 200).min(content.len());
#      |                                  ^^^
#      |
#      = note: use <str>.as_bytes().len() instead
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#disallowed_methods
#      = note: requested on the command line with `-D clippy::disallowed-methods`

Error: CLIPPY_WARNING: [#def5]
crates/xtask/src/anaconda.rs:946:59: warning: use of a disallowed method `str::len`
#      |
#  946 |         let end = (idx + pattern.len() + 200).min(content.len());
#      |                                                           ^^^
#      |
#      = note: use <str>.as_bytes().len() instead
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#disallowed_methods

Scan Properties

analyzer-version-clippy1.93.1
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.93.1
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.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-155.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.20260225.110632.gf6ecc5a.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202602251331.g11cba840a4-1
diffbase-store-results-to/tmp/tmpdwj_yxlz/bootc-202602251331.g11cba840a4-1.tar.xz
diffbase-time-created2026-02-25 18:57:39
diffbase-time-finished2026-02-25 19:20:23
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpdwj_yxlz/bootc-202602251331.g11cba840a4-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpdwj_yxlz/bootc-202602251331.g11cba840a4-1.src.rpm'
diffbase-tool-versioncsmock-3.8.4.20260225.081022.gb9390cd-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-155.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260225.110632.gf6ecc5a.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebootc-202602251806.gdd89ba8c78-1
store-results-to/tmp/tmpz5_yuva8/bootc-202602251806.gdd89ba8c78-1.tar.xz
time-created2026-02-25 19:20:44
time-finished2026-02-25 19:43:00
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpz5_yuva8/bootc-202602251806.gdd89ba8c78-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpz5_yuva8/bootc-202602251806.gdd89ba8c78-1.src.rpm'
tool-versioncsmock-3.8.4.20260225.081022.gb9390cd-1.el9