Skip to content

fix(jcode-app-core): 7 dead_code warnings in update_product block the Quality Guardrails job #142

Closed

Description

@KooshaPari

Problem

The Quality Guardrails CI job fails on crates/jcode-app-core/src/update_product.rs with 7 dead_code warnings:

warning: associated function ... is never used
warning: constant `GITHUB_REPO` is never used

Root cause: mod update_product; at crates/jcode-app-core/src/update.rs:27 is a private module with no pub use, so every pub item inside it is unreachable outside the module and Rust reports all of them as dead.

The seven sites

# Site Nature
1 pub const GITHUB_REPO (update_product.rs:24) public product identity, unreachable
2 pub fn update_repo (:32) no non-test callers
3 pub fn update_repo_for (:39) test-only in practice
4 pub fn fork_update_disallowed_error (:116) genuinely dead
5 pub fn resolve_update_repo (:156) genuinely dead
6 pub fn is_inside_git_repo (:166) duplicate of update.rs:160
7 fn log_disabled (:238) reachable only via the dead update_repo_for

Acceptance

  • The Quality Guardrails job reports zero dead_code warnings for update_product.rs.
  • cargo clippy -p jcode-app-core --all-targets --all-features -- -D warnings exits 0.

Scope note

This issue covers unblocking CI. The proper resolution (re-export vs delete vs wire, instead of a blanket #[allow(dead_code)]) is tracked separately in the follow-up issue so the allowance is not permanent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions