Skip to content

engine: vdf.rs exceeds the 6000-line lint limit and fails pnpm lint #471

Closed

Description

@bpowers

src/simlin-engine/src/vdf.rs reached 6,001 lines, one over the 6,000-line limit that scripts/lint-project.sh enforces on Rust source files, so pnpm lint and the pre-commit hook failed on main:

ERROR: src/simlin-engine/src/vdf.rs has 6001 lines (threshold: 6000).

The fix is to move a self-contained piece of vdf.rs into a submodule under src/simlin-engine/src/vdf/.

Current state

vdf.rs is 5,371 lines on main; record-result decoding and other pieces now live in vdf/record_results.rs, vdf/section3.rs, vdf/section5_dims.rs, and vdf/signatures.rs.

Pointers

Activity

  1. added
    engine
    hygiene
    on Jun 8, 2026
  2. changed the title [-]engine: vdf.rs exceeds MAX_LINES=6000 lint threshold (6001 lines), breaking pnpm lint[/-] [+]engine: vdf.rs exceeds the 6000-line lint limit and fails pnpm lint[/+] on Oct 12, 2026
  3. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing: already fixed on main.

    src/simlin-engine/src/vdf.rs is 5,371 lines on main, under the 6,000-line limit in scripts/lint-project.sh:74, with code split into src/simlin-engine/src/vdf/{record_results,section3,section5_dims,signatures}.rs.

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

    enginehygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions