Skip to content

dead-code: filter pub API surface by default (+ --include-pub flag) #520

Closed

Description

@ajianaz

What

cora dead-code counts public API of library crates as dead code.

Evidence

On codecoradev/uteke: 557 findings, majority are pub fn in uteke-core / uteke-mcp (library crates) whose purpose is to be consumed externally. Examples: chunk_markdown_embed_aware, consolidate, dream family.

Proposal

  • Skip pub items by default (they are API surface, not dead)
  • Add --include-pub to opt back in
  • Alternatively: respect crate type ([lib] vs [[bin]]) from Cargo.toml

Impact

Combined with #519 this turns dead-code from 557 noisy findings into a small actionable set.

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