chore(cleanup): remove dead lib/ duplicates + legacy OCaml prototype#333
Merged
Conversation
`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
marked this pull request as ready for review
June 29, 2026 11:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/duplicateslib/linter.rs+lib/formatter.rsare orphaned duplicates of the livesrc/ephapax-tools/src/{linter,formatter}.rs.lib/has noCargo.toml, is not a workspace member, and no manifest / source / doc references it — never built. Also retires theunwrap_dangerous_defaultfinding the triage had to exempt (its.hypatia-ignoreentry 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. Nodune-project/ OCaml toolchain, no references, last touched only by a cosmetic CI fix. Retires 4SD009(missing-SPDX) findings without an owner-gated licence edit — by removal rather than header-stamping dead files.Evidence:
lib/absent fromCargo.tomlmembers;grepfinds nopath="lib", nomod/include!/include_str!, and no.adoc/.mdlinks to any removed file.🤖 Generated with Claude Code