Skip to content

Adopt the Whitaker Dylint suite in the lint gate and CI - #44

Merged
leynos merged 2 commits into
mainfrom
adopt-whitaker
Jul 9, 2026
Merged

Adopt the Whitaker Dylint suite in the lint gate and CI#44
leynos merged 2 commits into
mainfrom
adopt-whitaker

Conversation

@leynos

@leynos leynos commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

This pull request adopts the Whitaker Dylint suite in prosidy-darn's Rust lint path, as part of the estate-wide rollout (reference adoption: leynos/netsuke#410).

The repository previously had no Makefile target for Rust linting: make lint runs the two-tier Python gate, and the developers' guide listed cargo fmt and cargo check as manual commands for Rust extension changes. This change preserves that Python/Rust split by introducing a dedicated lint-rust target that runs Clippy and then the Whitaker suite over the rust/ workspace with warnings denied. Continuous integration installs the suite via whitaker-installer (pinned at 0.2.5, cached, with a cargo-binstall-or-build fallback for runners lacking cargo binstall) and runs the new target after the Python lint step.

The suite reported no findings against the existing crate, so no code changes or dylint.toml exclusions were required.

Review walkthrough

  • Makefile: adds the CARGO and WHITAKER tool variables and the lint-rust target, which runs Clippy followed by the Whitaker suite from the rust/ Cargo root.
  • .github/workflows/ci.yml: pins WHITAKER_INSTALLER_VERSION as job environment, caches the installer binary and the cargo-binstall cache, installs the suite, and runs make lint-rust.
  • docs/developers-guide.md: documents the new gate under the Rust extension quality gates, including how to install the whitaker wrapper.

Validation

  • mbake validate Makefile: valid syntax.
  • make lint-rust: Clippy and the Whitaker suite (v0.2.5, toolchain nightly-2025-09-18) both finish with no findings.
  • make check-fmt lint typecheck test markdownlint: all pass (20 tests passed; 33 Markdown files, 0 errors).
  • make nixie: all Mermaid diagrams validate.
  • git diff --check: clean.

Wire the Whitaker Dylint suite into the Rust lint path as part of the
estate-wide rollout (see leynos/netsuke#410 for the reference adoption).

The repository previously had no Makefile target for Rust linting: the
`lint` target runs the two-tier Python gate, and the developers' guide
listed `cargo fmt`/`cargo check` as manual commands for Rust changes.
Preserve that Python/Rust split by adding a dedicated `lint-rust`
target that runs Clippy and then Whitaker over the `rust/` workspace
with warnings denied, alongside new `CARGO` and `WHITAKER` tool
variables.

In CI, install the suite via `whitaker-installer` (pinned at 0.2.5,
cached, with a cargo-binstall-or-build fallback for runners without
binstall) and run `make lint-rust` after the Python lint step.

The suite reported no findings against the existing crate, so no code
changes were required. Document the new gate in the developers' guide.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @leynos, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 59 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b98b7582-3c2e-4b84-9238-7e0e69044b89

📥 Commits

Reviewing files that changed from the base of the PR and between 4aa15e2 and 880ca0d.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • Makefile
  • docs/developers-guide.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch adopt-whitaker

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 724f183ade

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
Replace inline `${{ env.WHITAKER_INSTALLER_VERSION }}` interpolation in the
run block with the plain shell variable `"${WHITAKER_INSTALLER_VERSION}"`;
the job-level `env:` already exports it, and zizmor flags run-block template
interpolation as a template-injection hazard. Add `--locked` to the
cargo-binstall invocation so that binstall's compile fallback resolves
dependencies from the published lockfile, keeping fallback builds
reproducible.
@leynos
leynos merged commit 987d359 into main Jul 9, 2026
5 checks passed
@leynos
leynos deleted the adopt-whitaker branch July 9, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant