CI: run clippy on all targets, warnings only #274
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/277"
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 ivall/xcl. Originally posted by sombraSoft on 2026-11-23T22:17:04Z.
Adds a clippy job to CI that only warns. It runs
cargo clippy --workspace --all-targetson every push and pull request. Its warnings are listed in the job's log and never fail it, because the tree is not lint-clean (clippy 0.1.100 reports about 630 warnings) and a failing lint must not block merges.Part of #265
What is in it
.github/workflows/ci.yml: aclippyjob onwindows-2025(stable + clippy,Swatinem/rust-cache@v2saving only onmain) runningcargo clippy --workspace --all-targets. The header comment lists it. No lint config and no source change.AGENTS.md: the clippy command is listed next to the build and test commands, with one rule: fix the warnings clippy reports in the lines you wrote or changed, and leave the existing ones alone (Scope: no drive-by fixes). Since the CI job only warns, this is what keeps new warnings out.CI time
Tested
main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.Clippy (Windows)passed in 72 s and listed the warnings (xcllib: 417, lib test: 620 incl. duplicates);Build and testpassed: https://github.com/sombraSoft/xcl/actions/runs/45282658244Regression run
crates/xcl/srcchange.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:03:37Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:42:33Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:03:32Z.
Triage (#1607) – head
86790b2No open or merged PR adds clippy to CI. The lines shared with #783 are the usual rustup toolchain setup; #783 cross-builds the Wine target, a different job.
No problems found in the diff: the job never fails on warnings (no
-D warnings), so it adds runner time but cannot block. TheAGENTS.mdrule (fix clippy warnings only in lines you changed) is a policy addition the maintainer has to want. Conflicts with main'sci.yml.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed