Contributor setup: cargo xtask check, CONTRIBUTING.md, CLAUDE.md, .editorconfig #252
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!252
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-252"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RenzoWit35 on GitHub · 2026-11-24 23:01 UTC · original
RenzoWit35:contributor-tooling→main· +189 −0 · 5 files · 1 commits · openWhat
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-testleaves out the tests.VICTORY_*switches off by default,shortcut:comments,// SAFETY:on new unsafe blocks) and commit style.rustfmt.toml(100 columns) and.gitattributes(LF; CRLF for.cmd/.ps1)..editorconfigis already on the policy allowlist.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
x86_64-pc-windows-gnu, the pinned1.98.1resolves to the gnu toolchain; the doc showsrustup override set 1.98.1-x86_64-pc-windows-msvcfor this folder only.cargo fmt --all --checkreports about 800 diffs, as upstream), and CI does not check formatting. The docs say not to runcargo fmt --allso upstream merges stay easy. This PR reformats nothing.check()inxtask/src/main.rsduplicates 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 checkpasses 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
cargo xtask check, CONTRIBUTING.md, CLAUDE.md, .editorconfig 4b4795527dView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.