Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
crates/openshell-providers/src/providers/vertex.rs:48:17: warning: use Option::map_or_else instead of an if let/else
#     |
#  48 | /                 if let Ok(custom_path) = std::env::var("GOOGLE_APPLICATION_CREDENTIALS") {
#  49 | |                     std::path::Path::new(&custom_path).exists()
#  50 | |                 } else {
#  51 | |                     let default_path = format!(
#  ...  |
#  55 | |                     std::path::Path::new(&default_path).exists()
#  56 | |                 };
#     | |_________________^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#option_if_let_else
#     = note: `-W clippy::option-if-let-else` implied by `-W clippy::nursery`
#     = help: to override `-W clippy::nursery` add `#[allow(clippy::option_if_let_else)]`
#  help: try
#     |
#  48 ~                 std::env::var("GOOGLE_APPLICATION_CREDENTIALS").map_or_else(|_| {
#  49 +                     let default_path = format!(
#  50 +                         "{}/.config/gcloud/application_default_credentials.json",
#  51 +                         std::env::var("HOME").unwrap_or_default()
#  52 +                     );
#  53 +                     std::path::Path::new(&default_path).exists()
#  54 ~                 }, |custom_path| std::path::Path::new(&custom_path).exists());
#     |

Scan Properties

analyzer-version-clippy1.94.1
analyzer-version-cppcheck2.20.0
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.94.1
diffbase-analyzer-version-cppcheck2.20.0
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-174.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.20260320.200800.gd35503f.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameopenshell-0.0.22-1.20260408043452833080.midstream.85.g73909fb
diffbase-store-results-to/tmp/tmpy2xcemr9/openshell-0.0.22-1.20260408043452833080.midstream.85.g73909fb.tar.xz
diffbase-time-created2026-04-08 17:27:37
diffbase-time-finished2026-04-08 17:45:09
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpy2xcemr9/openshell-0.0.22-1.20260408043452833080.midstream.85.g73909fb.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpy2xcemr9/openshell-0.0.22-1.20260408043452833080.midstream.85.g73909fb.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-174.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameopenshell-0.0.22-1.20260408163033866359.pr22.105.g20ecd00
store-results-to/tmp/tmpkmjyf466/openshell-0.0.22-1.20260408163033866359.pr22.105.g20ecd00.tar.xz
time-created2026-04-08 17:45:45
time-finished2026-04-08 18:02:43
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpkmjyf466/openshell-0.0.22-1.20260408163033866359.pr22.105.g20ecd00.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpkmjyf466/openshell-0.0.22-1.20260408163033866359.pr22.105.g20ecd00.src.rpm'
tool-versioncsmock-3.8.5-1.el9