Skip to content

Commit 6a9a91c

Browse files
chore(cleanup): remove dead lib/ duplicates + legacy OCaml prototype (#333)
## 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](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8018240 commit 6a9a91c

7 files changed

Lines changed: 0 additions & 2093 deletions

File tree

.hypatia-ignore

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,6 @@ cicd_rules/banned_language_file:formal/Makefile.conf
4444
# handled by in-file `hypatia: allow` directives, not here.)
4545
code_safety/admitted:formal/Semantics.v
4646

47-
# ─── Stale duplicate linter (lib/linter.rs) ────────────────────────────────────
48-
#
49-
# lib/linter.rs (178 lines) is a stale/legacy sibling of the live
50-
# src/ephapax-tools/src/linter.rs (920 lines). Its two `line.find(..).unwrap_or(0)+1`
51-
# sites compute 1-based diagnostic columns; 0 is a benign "column 1" default, not a
52-
# masked fault. Exempted pending an owner decision on whether to remove the duplicate.
53-
code_safety/unwrap_dangerous_default:lib/linter.rs
54-
55-
# ─── SD009: legacy OCaml files without SPDX headers (src/*.ml) ──────────────────
56-
#
57-
# src/{lexer,parser,ast,typecheck}.ml are legacy OCaml artefacts in a Rust/Coq/Idris
58-
# project (the live type checker is Rust). Adding licence headers is an SPDX edit,
59-
# which estate policy reserves for the owner (no-automated-licence-edits). Flag-only:
60-
# exempted here and surfaced to the owner — these are also candidates for removal.
61-
structural_drift/SD009:src/lexer.ml
62-
structural_drift/SD009:src/parser.ml
63-
structural_drift/SD009:src/ast.ml
64-
structural_drift/SD009:src/typecheck.ml
65-
6647
# ─── SD022: doc references to pre-restructure directories (deferred doc refresh) ─
6748
#
6849
# EXPLAINME/README/ROADMAP.adoc + tests/fuzz/FUZZING_GUIDE.md reference dirs

lib/formatter.rs

Lines changed: 0 additions & 99 deletions
This file was deleted.

lib/linter.rs

Lines changed: 0 additions & 178 deletions
This file was deleted.

src/ast.ml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)