Skip to content

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

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

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

Conversation

@leynos

@leynos leynos commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

This pull request aligns rentaneko with the estate-wide rollout of the
Whitaker Dylint suite (see leynos/netsuke#410 for the reference
adoption). The repository skeleton already ran Whitaker in make lint
and in CI, but it installed the installer from a pinned git revision and
carried bespoke PATH-resolution plumbing in the Makefile. Both are now
replaced with the standard pattern: a plain WHITAKER ?= whitaker tool
variable, and installation of the released whitaker-installer 0.2.5 via
cargo binstall with the estate-standard cache key. The suite reports
no findings on this codebase, so no code changes or dylint.toml
exclusions were required.

Review walkthrough

  • Makefile:
    the WHITAKER variable is simplified to whitaker, the
    USER_WHITAKER and USER_BIN_PATH indirection is removed, and the
    lint recipe invokes the wrapper directly after Clippy with warnings
    denied. The target's help text now mentions the Whitaker suite.
  • .github/workflows/ci.yml:
    the WHITAKER_INSTALLER_REV git pin is replaced by
    WHITAKER_INSTALLER_VERSION: '0.2.5'; the cache step now stores only
    ~/.cargo/bin/whitaker-installer and ~/.cache/cargo-binstall under
    the whitaker-installer-<os>-<arch>-<version> key; and the install
    step uses cargo binstall (provided by the shared setup-rust action)
    with an idempotence guard.

Validation

  • make check-fmt lint — passes; Clippy and the Whitaker suite both
    report no findings (whitaker --all -- --all-targets --all-features
    with RUSTFLAGS="-D warnings").
  • make typecheck test — passes; 1 test run via nextest, doc-tests
    clean.
  • make markdownlint — passes; 17 files, 0 errors.
  • make nixie — passes; all Mermaid diagrams validated.
  • mbake validate Makefile — valid syntax.

Align the repository with the estate-wide Whitaker rollout pattern
established in leynos/netsuke#410. The repository skeleton already ran
Whitaker in `make lint` and CI, but it installed the installer from a
pinned git revision and carried bespoke PATH-resolution plumbing in the
Makefile.

- Simplify the Makefile to the standard `WHITAKER ?= whitaker` tool
  variable and drop the USER_WHITAKER/USER_BIN_PATH indirection; the
  lint recipe now invokes the wrapper directly after Clippy with
  warnings denied, matching the other tool variables.
- Replace the git-revision installer in CI with the released
  whitaker-installer 0.2.5 via `cargo binstall` (provided by the shared
  setup-rust action), caching only the installer binary and the
  cargo-binstall cache under the estate-standard cache key.

The suite reports no findings on this codebase, so no code changes or
dylint.toml exclusions were required.

@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: 7 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: 794a2a36-3b56-4b21-aa44-2e0a51aea08e

📥 Commits

Reviewing files that changed from the base of the PR and between 20a4fbc and 1048292.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • Makefile
✨ 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: 23db8a04b1

ℹ️ 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 Makefile
leynos added 2 commits July 8, 2026 12:47
This project builds with the Cranelift debug backend, so the Dylint
driver's pinned nightly needs `rustc-codegen-cranelift` installed.
Restore the installer's `--cranelift` flag, which the standardized
install step had dropped.
Pass WHITAKER_INSTALLER_VERSION to the run block through the shell
environment rather than inline `${{ env }}` template expansion, which
zizmor flags as a template-injection risk; the job-level `env:` block
already exports the variable. Add `--locked` to the cargo binstall
invocation so that its compile-from-source fallback resolves
dependencies from the published lockfile, keeping fallback builds
reproducible.
@leynos
leynos merged commit 374b205 into main Jul 9, 2026
5 checks passed
@leynos
leynos deleted the adopt-whitaker branch July 9, 2026 18:50
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