Skip to content

xtask main.rs is a god file #412

Description

@flyingrobots

Migrated from Method backlog

This issue was created from a legacy filesystem backlog card. GitHub Issues are now the live work tracker; repository docs remain Method evidence.

Source backlog: docs/method/backlog/bad-code/xtask-god-file.md
Original lane: bad-code

Original backlog card

xtask main.rs is a god file

Status: active bad-code note. xtask/src/main.rs is still the only source file
under xtask/src/ and is roughly 7.8k lines; argument definitions, command
dispatch, GitHub/PR helpers, benchmark tooling, DIND tooling, docs linting, and
Method formatting are still mixed together.

xtask/src/main.rs is a single file with all subcommands inlined.
It's past the point where this is reasonable. Extract into modules:
bench.rs, dags.rs, pr.rs, dind.rs, docs.rs, method.rs.

The method integration is already thin (just CLI parsing + formatting)
but the rest of the subcommands have substantial logic mixed with
argument definitions.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions