Skip to content

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

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

Adopt the Whitaker Dylint suite in the lint gate and CI#16
leynos merged 4 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 (v0.2.5) in the lint
gate and CI, as part of the estate-wide rollout following the reference
adoption in leynos/netsuke#410.

The lint Makefile target now runs the suite after Clippy, denying
warnings via the repository's existing RUST_FLAGS convention, with a
WHITAKER variable declared alongside the other tool variables so the
binary can be overridden. CI caches the whitaker-installer binary and
the cargo-binstall download cache, installs whitaker-installer 0.2.5
via cargo binstall (provided by the shared setup-rust action), and
runs the installer before the lint step.

The suite reported no findings for this crate, so no code changes or
dylint.toml exclusions were required. Although this is a WASM plugin
crate, the current stub has no wasm-only target configuration, so the
suite ran with the full --all-targets --all-features set.

Two pre-existing gate failures were fixed in a preparatory commit: a
missing trailing newline in src/lib.rs (failing cargo fmt --check)
and a double blank line in AGENTS.md (failing markdownlint MD012).

Review walkthrough

  • Makefile:
    adds WHITAKER ?= whitaker and appends the suite to the lint
    target after Clippy.
  • .github/workflows/ci.yml:
    adds the WHITAKER_INSTALLER_VERSION job environment variable, a
    cache step for the installer and binstall cache, and an install step
    before the lint step.
  • src/lib.rs
    and
    AGENTS.md:
    pre-existing formatting and Markdown lint fixes.

Validation

  • whitaker --all -- --all-targets --all-features (with
    RUSTFLAGS="-D warnings"): no findings, exit 0.
  • make check-fmt: passes.
  • make lint (Clippy, cargo doc, and the Whitaker suite): passes.
  • make test: passes (no tests yet in this stub crate).
  • make markdownlint: passes.
  • make nixie: all Mermaid diagrams validated successfully.

leynos added 2 commits July 8, 2026 12:34
Add the missing trailing newline to src/lib.rs so that
`cargo fmt --check` passes, and collapse a double blank line in
AGENTS.md that tripped markdownlint's MD012 rule. Both failures
predate this branch and block the lint gates that the Whitaker
adoption relies upon.
Extend the `lint` Makefile target to run the Whitaker Dylint suite
after Clippy, denying warnings via the existing RUST_FLAGS
convention, with a WHITAKER variable alongside the other tool
variables for overriding.

In CI, cache the whitaker-installer binary and the cargo-binstall
download cache, install whitaker-installer 0.2.5 via cargo binstall
(provided by the shared setup-rust action), and run the installer
before the lint step so that `make lint` exercises the suite.

The suite reported no findings for this crate.

@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: 001f10d9-e9da-47d3-9262-0f169d1d12c4

📥 Commits

Reviewing files that changed from the base of the PR and between 0b98170 and 203bbc2.

📒 Files selected for processing (4)
  • .github/workflows/ci.yml
  • AGENTS.md
  • Makefile
  • src/lib.rs
✨ 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.

The pinned shared `setup-rust` action in this repository predates
binstall provisioning, so the Whitaker install step failed with
"no such command: `binstall`". Try binstall first and build the
installer from crates.io otherwise; the cached binary makes the
fallback a one-off cost.

@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: 18991e44f0

ℹ️ 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 Outdated
Comment thread .github/workflows/ci.yml
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 f4f23ff into main Jul 9, 2026
5 checks passed
@leynos
leynos deleted the adopt-whitaker branch July 9, 2026 18:14
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