Files
oxc/.github
Boshen c824f5ff2a ci(lint): run release-mode clippy on main only, without --all-targets (#24242)
The Lint job is one of the two slowest jobs on PR CI (median 3m29s, p90 4m48s over the last 31 runs), and the `dev-no-debug-assertions` clippy pass accounts for roughly half of its clippy time — every core-crate commit re-checks ~60 crates twice, once per profile.

That pass exists to catch lints which only fire with `debug_assertions` off (e.g. #8539, the motivation for adding it in #8541). This failure class is rare (~4 occurrences in the project's history) and a post-merge failure on main pinpoints the culprit commit, so run it on `main` pushes only — the same trade already made for the mac/windows/32-bit/big-endian test jobs.

Also drop `--all-targets` from this pass (calling `cargo clippy` directly, since the `cargo lint` alias bakes it in): test/bench code is never built in release mode with `-D warnings`, and skipping it avoids re-checking `oxc_linter`'s inline rule tests a second time. The `#[cfg(debug_assertions)]` sites in the workspace are almost entirely in lib code.

Expected PR lint job time: ~3m30s → ~1m45s median.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-07-07 09:42:09 +00:00
..