Error: CLIPPY_WARNING: [#def1] crates/openshell-bootstrap/src/docker.rs:271:1: warning: pub(crate) function inside private module # | # 271 | pub(crate) fn connect_local_auto() -> Result<Docker> { # | ----------^^^^^^^^^^^^^^^^^^^^^^ # | | # | help: consider using: `pub` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#redundant_pub_crate Error: CLIPPY_WARNING: [#def2] crates/openshell-bootstrap/src/lib.rs:673:27: warning: called `map(<f>).unwrap_or_else(<g>)` on an `Option` value # | # 673 | let runtime = get_gateway_metadata(name) # | ___________________________^ # 674 | | .map(|m| m.container_runtime) # 675 | | .unwrap_or_else(|| detect_runtime(None).unwrap_or(ContainerRuntime::Docker)); # | |____________________________________________________________________________________________^ help: try: `get_gateway_metadata(name).map_or_else(|| detect_runtime(None).unwrap_or(ContainerRuntime::Docker), |m| m.container_runtime)` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#map_unwrap_or Error: CLIPPY_WARNING: [#def3] crates/openshell-bootstrap/src/lib.rs:721:27: warning: called `map(<f>).unwrap_or_else(<g>)` on an `Option` value # | # 721 | let runtime = get_gateway_metadata(name) # | ___________________________^ # 722 | | .map(|m| m.container_runtime) # 723 | | .unwrap_or_else(|| detect_runtime(None).unwrap_or(ContainerRuntime::Docker)); # | |____________________________________________________________________________________________^ help: try: `get_gateway_metadata(name).map_or_else(|| detect_runtime(None).unwrap_or(ContainerRuntime::Docker), |m| m.container_runtime)` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#map_unwrap_or Error: CLIPPY_WARNING: [#def4] crates/openshell-tui/src/lib.rs:2033:17: warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` # | # 2033 | / match openshell_core::settings::parse_bool_like(&raw) { # 2034 | | Some(v) => setting_value::Value::BoolValue(v), # 2035 | | None => { # 2036 | | let _ = tx.send(Event::SandboxSettingSetResult(Err(format!( # ... | # 2041 | | } # | |_________________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#single_match_else # help: try # | # 2033 ~ if let Some(v) = openshell_core::settings::parse_bool_like(&raw) { setting_value::Value::BoolValue(v) } else { # 2034 + let _ = tx.send(Event::SandboxSettingSetResult(Err(format!( # 2035 + "invalid bool value: {raw}" # 2036 + )))); # 2037 + return; # 2038 + } # | Error: CLIPPY_WARNING: [#def5] crates/openshell-tui/src/lib.rs:2043:64: warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` # | # 2043 | openshell_core::settings::SettingValueKind::Int => match raw.parse::<i64>() { # | ________________________________________________________________^ # 2044 | | Ok(v) => setting_value::Value::IntValue(v), # 2045 | | Err(_) => { # 2046 | | let _ = tx.send(Event::SandboxSettingSetResult(Err(format!( # ... | # 2051 | | }, # | |_____________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#single_match_else # help: try # | # 2043 ~ openshell_core::settings::SettingValueKind::Int => if let Ok(v) = raw.parse::<i64>() { setting_value::Value::IntValue(v) } else { # 2044 + let _ = tx.send(Event::SandboxSettingSetResult(Err(format!( # 2045 + "invalid int value: {raw}" # 2046 + )))); # 2047 + return; # 2048 ~ }, # |
| analyzer-version-clippy | 1.94.1 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.94.1 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.1 |
| 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-164.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.20260320.200800.gd35503f.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | openshell-0.0.22-1.20260407022334282962.midstream.76.g9a4c43a |
| diffbase-store-results-to | /tmp/tmpcd6pt7ui/openshell-0.0.22-1.20260407022334282962.midstream.76.g9a4c43a.tar.xz |
| diffbase-time-created | 2026-04-07 21:40:36 |
| diffbase-time-finished | 2026-04-07 21:57:01 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpcd6pt7ui/openshell-0.0.22-1.20260407022334282962.midstream.76.g9a4c43a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpcd6pt7ui/openshell-0.0.22-1.20260407022334282962.midstream.76.g9a4c43a.src.rpm' |
| diffbase-tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-164.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.20260320.200800.gd35503f.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | openshell-0.0.22-1.20260407212030327865.pr24.77.g06bac36 |
| store-results-to | /tmp/tmp47es4155/openshell-0.0.22-1.20260407212030327865.pr24.77.g06bac36.tar.xz |
| time-created | 2026-04-07 21:58:03 |
| time-finished | 2026-04-07 22:13:59 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp47es4155/openshell-0.0.22-1.20260407212030327865.pr24.77.g06bac36.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp47es4155/openshell-0.0.22-1.20260407212030327865.pr24.77.g06bac36.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |