Skip to content

chore(cleanup): remove dead lib/ duplicates + legacy OCaml prototype#333

Merged
hyperpolymath merged 2 commits into
mainfrom
claude/housekeeping-dead-files
Jun 29, 2026
Merged

chore(cleanup): remove dead lib/ duplicates + legacy OCaml prototype#333
hyperpolymath merged 2 commits into
mainfrom
claude/housekeeping-dead-files

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Housekeeping — remove provably-dead orphaned files

Follow-up to the Hypatia triage (#320). Two independent commits so you can keep either alone.

Commit 1 — dead lib/ duplicates

lib/linter.rs + lib/formatter.rs are orphaned duplicates of the live src/ephapax-tools/src/{linter,formatter}.rs. lib/ has no Cargo.toml, is not a workspace member, and no manifest / source / doc references it — never built. Also retires the unwrap_dangerous_default finding the triage had to exempt (its .hypatia-ignore entry is dropped).

Commit 2 — legacy OCaml prototype (drop this commit if you want it kept as an archive)

src/{lexer,parser,ast,typecheck}.ml — a ~76KB early OCaml prototype superseded by the Rust workspace. No dune-project / OCaml toolchain, no references, last touched only by a cosmetic CI fix. Retires 4 SD009 (missing-SPDX) findings without an owner-gated licence edit — by removal rather than header-stamping dead files.

Evidence: lib/ absent from Cargo.toml members; grep finds no path="lib", no mod/include!/include_str!, and no .adoc/.md links to any removed file.

Verified dead, not just unused — but it's deletion of files I didn't author, so it's a draft for your review. Also fixed locally (not in this PR): the stale repo-local user.signingkey GPG override in .git/config that was breaking SSH signing.

🤖 Generated with Claude Code

hyperpolymath and others added 2 commits June 29, 2026 12:52
`lib/linter.rs` and `lib/formatter.rs` are orphaned duplicates of the
live `src/ephapax-tools/src/{linter,formatter}.rs`. `lib/` has no
Cargo.toml, is not a workspace member, and is referenced by no manifest
or source file — it is never built. Removing it also retires the
Hypatia `unwrap_dangerous_default` finding the triage had to exempt
(its `.hypatia-ignore` entry is dropped here, since the file is gone).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
src/{lexer,parser,ast,typecheck}.ml are a ~76KB early OCaml prototype
superseded by the Rust workspace (the live lexer/parser/typechecker are
the `src/ephapax-*` crates; see CLAUDE.md). There is no dune-project or
OCaml toolchain in the repo, no manifest or doc references them, and
they were last touched only by a cosmetic CI fix. Removing them retires
the Hypatia SD009 (missing-SPDX) findings without an owner-gated licence
edit (the now-obsolete `.hypatia-ignore` entries are dropped here).

NOTE: if you'd rather keep this prototype as an archive, drop this
commit — commit 1 (dead lib/ duplicates) stands on its own.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hyperpolymath
hyperpolymath marked this pull request as ready for review June 29, 2026 11:55
@hyperpolymath
hyperpolymath merged commit 6a9a91c into main Jun 29, 2026
18 checks passed
@hyperpolymath
hyperpolymath deleted the claude/housekeeping-dead-files branch June 29, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant