Contributor setup: cargo xtask check, CONTRIBUTING.md, CLAUDE.md, .editorconfig #252

Open
RenzoWit35 wants to merge 1 commit from upstream-pr/252 into main
RenzoWit35 commented 2026-11-24 23:01:01 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by RenzoWit35 on 2026-11-24T23:01:01Z.


What

  • cargo xtask check: runs what CI runs, in CI's order (asset-policy check, clippy for the plain and the diagnostics build with -D warnings, then the tests) and stops at the first failure. --no-test leaves out the tests.
  • CONTRIBUTING.md: Windows setup, rule #1 (asset policy), everyday commands, where code goes, the fork's conventions (VICTORY_* switches off by default, shortcut: comments, // SAFETY: on new unsafe blocks) and commit style.
  • CLAUDE.md: the short version for Claude Code sessions, rule #1 first.
  • .editorconfig: matches rustfmt.toml (100 columns) and .gitattributes (LF; CRLF for .cmd/.ps1). .editorconfig is already on the policy allowlist.
  • README.md: one line in the fork section pointing to CONTRIBUTING.md; upstream's part is unchanged.

No code changes outside xtask.

Why

So a new contributor can get from clone to a green local check in a few commands, and run the exact CI steps before pushing.

Notes for review

  • Setup gotcha covered in CONTRIBUTING.md: when rustup's default host is x86_64-pc-windows-gnu, the pinned 1.98.1 resolves to the gnu toolchain; the doc shows rustup override set 1.98.1-x86_64-pc-windows-msvc for this folder only.
  • The tree is not rustfmt-clean (cargo fmt --all --check reports about 800 diffs, as upstream), and CI does not check formatting. The docs say not to run cargo fmt --all so upstream merges stay easy. This PR reformats nothing.
  • The new docs follow the recent "the title" convention and do not name the game.
  • check() in xtask/src/main.rs duplicates the CI steps; a comment there says to keep it in step with .github/workflows/ci.yml.

Testing

On Windows 11 with MSVC 14.44 and Rust 1.98.1 (msvc): cargo xtask check passes end to end (policy: 172 files ok, both clippy runs clean, all workspace tests pass). The pre-commit policy hook passed on the commit.

🤖 Generated with Claude Code

<!-- greyfinch-sync:fxceless/victory-fork:issue:6593140898 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/252). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T23:01:01Z. --- ## What - **`cargo xtask check`**: runs what CI runs, in CI's order (asset-policy check, clippy for the plain and the diagnostics build with `-D warnings`, then the tests) and stops at the first failure. `--no-test` leaves out the tests. - **CONTRIBUTING.md**: Windows setup, rule #1 (asset policy), everyday commands, where code goes, the fork's conventions (`VICTORY_*` switches off by default, `shortcut:` comments, `// SAFETY:` on new unsafe blocks) and commit style. - **CLAUDE.md**: the short version for Claude Code sessions, rule #1 first. - **.editorconfig**: matches `rustfmt.toml` (100 columns) and `.gitattributes` (LF; CRLF for `.cmd`/`.ps1`). `.editorconfig` is already on the policy allowlist. - **README.md**: one line in the fork section pointing to CONTRIBUTING.md; upstream's part is unchanged. No code changes outside `xtask`. ## Why So a new contributor can get from clone to a green local check in a few commands, and run the exact CI steps before pushing. ## Notes for review - Setup gotcha covered in CONTRIBUTING.md: when rustup's default host is `x86_64-pc-windows-gnu`, the pinned `1.98.1` resolves to the gnu toolchain; the doc shows `rustup override set 1.98.1-x86_64-pc-windows-msvc` for this folder only. - The tree is not rustfmt-clean (`cargo fmt --all --check` reports about 800 diffs, as upstream), and CI does not check formatting. The docs say not to run `cargo fmt --all` so upstream merges stay easy. This PR reformats nothing. - The new docs follow the recent "the title" convention and do not name the game. - `check()` in `xtask/src/main.rs` duplicates the CI steps; a comment there says to keep it in step with `.github/workflows/ci.yml`. ## Testing On Windows 11 with MSVC 14.44 and Rust 1.98.1 (msvc): `cargo xtask check` passes end to end (policy: 172 files ok, both clippy runs clean, all workspace tests pass). The pre-commit policy hook passed on the commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/252:upstream-pr/252'
git switch 'upstream-pr/252'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/252'
git switch 'upstream-pr/252'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/252'
git switch 'upstream-pr/252'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/252'
git switch 'main'
git merge --squash 'upstream-pr/252'
git switch 'main'
git merge --ff-only 'upstream-pr/252'
git switch 'main'
git merge 'upstream-pr/252'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!252
No description provided.