Skip to content

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

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

Adopt the Whitaker Dylint suite in the lint gate and CI#17
leynos merged 5 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
leynos/netsuke#410. The Makefile gains a WHITAKER ?= whitaker tool
variable and the lint target now runs the suite after Clippy with
warnings denied via the repository's existing RUST_FLAGS convention.
The CI workflow pins the installer version, caches the installer
binary and the cargo-binstall cache, and installs the suite before the
lint step using cargo binstall (provided by the shared setup-rust
action).

The suite reported no findings on this crate. A preparatory commit
repairs three pre-existing gate failures: a missing trailing newline
in src/main.rs, an #[allow] attribute forbidden by the crate's
clippy::allow_attributes deny policy (now #[expect]), and a
double blank line in AGENTS.md flagged by markdownlint.

Review walkthrough

  • Makefile:
    new WHITAKER variable and the Whitaker invocation appended to the
    lint target.
  • .github/workflows/ci.yml:
    WHITAKER_INSTALLER_VERSION job env, installer cache step, and the
    install step ahead of make lint.
  • src/main.rs:
    #[allow] replaced with #[expect]; trailing newline restored.
  • AGENTS.md:
    duplicate blank line removed.

Validation

  • whitaker --all -- --all-targets --all-features (with
    RUSTFLAGS="-D warnings"): no findings, exit 0.
  • make check-fmt lint test markdownlint: all pass.
  • make nixie: all Mermaid diagrams validated.
  • mbake validate Makefile: valid syntax.

leynos added 2 commits July 8, 2026 12:34
Repair three failures that predate the Whitaker adoption so the full
gate suite can pass:

- Add the trailing newline `cargo fmt --check` demanded in
  `src/main.rs`.
- Replace the `#[allow(clippy::print_stdout, ...)]` attribute on
  `main` with `#[expect(...)]`, as required by the crate-level
  `clippy::allow_attributes = "deny"` policy.
- Remove a double blank line in `AGENTS.md` flagged by markdownlint
  (MD012).
Wire the Whitaker Dylint suite (v0.2.5) into the repository's lint
gate as part of the estate-wide rollout (see leynos/netsuke#410):

- Makefile: add a `WHITAKER ?= whitaker` tool variable and run the
  suite after Clippy in the `lint` target, denying warnings via the
  existing `RUST_FLAGS` convention.
- CI: pin `WHITAKER_INSTALLER_VERSION` as job env, cache the
  installer binary and the cargo-binstall cache keyed on OS,
  architecture, and version, and install the suite via
  `cargo binstall` (provided by the shared setup-rust action) before
  the lint step.

The suite reports no findings on this crate, so no code changes were
required beyond the pre-existing gate fixes in the previous commit.

@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: 0c187773-7f84-4bbf-af6d-1de8fb7771c9

📥 Commits

Reviewing files that changed from the base of the PR and between 37491c0 and 840665e.

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

ℹ️ 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
Comment thread Makefile Outdated
leynos added 2 commits July 8, 2026 13:23
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.
The Clippy and test targets already honour a CARGO_FLAGS override via
CLIPPY_FLAGS and TEST_FLAGS, but the Whitaker invocation hardcoded
--all-targets --all-features. Pass $(CARGO_FLAGS) after the Dylint
separator instead so callers overriding CARGO_FLAGS get consistent
behaviour across all lint paths.
@leynos
leynos merged commit f9cd459 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