Skip to content

Adopt linecheck: enforce per-file line-count limits in CI #103

Description

@tupe12334

Opened by the moadim routine Scout & wire linecheck adoption → Slack.

What

Wire linecheck into this repo: a `linecheck.yml` at the root plus a GitHub Actions workflow that runs `linecheck .` on every PR and push to `main`.

Why

Source files here are well-factored today (every `src/**/*.rs` is ≤100 lines), but there is no enforcement — nothing stops a file from quietly growing into a monolith. `tests/cli.rs` has already reached 857 lines.

Thresholds

Pattern Warn Error
`tests/**/*.rs` 400 1000
everything else 200 400

Excluded: `Cargo.lock`, `CHANGELOG.md` (generated), lockfiles, `assets/`.

Verified locally: `linecheck .` exits 0 with two non-blocking warnings (`tests/cli.rs` at 857, `agent-runner/src/index.js` at 217) — CI will not be blocked on day one, but new bloat gets caught.

Activity

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