CI: check the formatting with cargo fmt on all PRs #17
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17"
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?
Imported from Marvisak/VIctory. Originally posted by raffclar on 2026-11-23T23:10:38Z.
Enforce common standard for code styling
Imported from Marvisak/VIctory. Originally posted by PolpOnline on 2026-11-23T23:12:11Z.
@raffclar Should also enforce tests on CI (at least those not depending on the binary being present)
Imported from Marvisak/VIctory. Originally posted by raffclar on 2026-11-23T23:13:58Z.
Yeah I agree. I'm trying to do things in small chunks for easier review
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T00:06:30Z.
Checked the gate this workflow adds, at
main97c78d1with the pinned toolchain (rustfmt 1.98.1): the tree is not formatted yet, so the check fails before any PR is looked at.cargo fmt --all -- --check: 141 hunks in 28 files, e.g.crates/victory-formats/src/texture.rs(10),xma.rs(9),xma/tables.rs(16),victory-gpu/src/host.rs(15),victory-hle/src/modules/xgamesave.rs(13),victory-loader/src/crash.rs(7).cargo fmt --allshould be part of this PR (before the gate is enabled) or the check should compare only the files a PR changes. Also worth pinning the rustfmt version to therust-toolchain.tomlone explicitly, since formatting differs between releases.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Imported from Marvisak/VIctory. Originally posted by Quat3rnion on 2026-11-24T00:37:56Z.
The format gate here is red on current main: the tree has about 141 formatting hunks across 28 files. #112 formats the tree once and adds a Linux CI job that runs the format check, workspace tests and asset policy. Please consider closing this in favour of #112. Thanks for starting the CI work, @raffclar.
Pull request closed