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

Open
github-bot wants to merge 1 commit from github-bot/gh-252 into main AGit
Owner

@⁠RenzoWit35 on GitHub · 2026-11-24 23:01 UTC · original
RenzoWit35:contributor-tooling → main · +189 −0 · 5 files · 1 commits · open

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

**@⁠RenzoWit35** on GitHub · 2026-11-24 23:01 UTC · [original](https://github.com/fxceless/victory-fork/pull/252) `RenzoWit35:contributor-tooling` → `main` · +189 −0 · 5 files · 1 commits · open ## 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)
`cargo xtask check` runs what CI runs, in CI's order (policy check, clippy
for the plain and diagnostics builds with -D warnings, tests) and stops at
the first failure; `--no-test` leaves out the tests. CONTRIBUTING.md covers
Windows setup (including pinning the MSVC toolchain when rustup's default
host is windows-gnu), rule #1, everyday commands and the fork's conventions;
CLAUDE.md is the short version for Claude Code sessions. .editorconfig
matches rustfmt.toml and .gitattributes. The README's fork section points
to CONTRIBUTING.md; upstream's part is unchanged. No code changes outside
xtask.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:39:14 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/252/head:github-bot/gh-252'
git switch 'github-bot/gh-252'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-252'
git switch 'github-bot/gh-252'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-252'
git switch 'github-bot/gh-252'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-252'
git switch 'main'
git merge --squash 'github-bot/gh-252'
git switch 'main'
git merge --ff-only 'github-bot/gh-252'
git switch 'main'
git merge 'github-bot/gh-252'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.