Skip to content

Align Whitaker lint wiring with the estate rollout conventions - #197

Merged
leynos merged 1 commit into
mainfrom
adopt-whitaker
Jul 9, 2026
Merged

Align Whitaker lint wiring with the estate rollout conventions#197
leynos merged 1 commit into
mainfrom
adopt-whitaker

Conversation

@leynos

@leynos leynos commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

This change aligns cuprum's existing Whitaker Dylint wiring with the
conventions adopted across the estate rollout (see leynos/netsuke#410).
Cuprum already ran the suite in make lint and installed it in the CI
lint-test job; this pull request closes the remaining gaps rather than
introducing the suite from scratch:

  • The Makefile gains a WHITAKER ?= whitaker tool variable, used by the
    lint recipe, so the binary can be overridden like the other tools; the
    lint target's help text now mentions Whitaker.
  • The Whitaker invocation now runs with RUSTFLAGS="$(RUST_FLAGS)"
    (-D warnings), matching the Clippy and test invocations.
  • The CI install step gains the binstall-or-build fallback required by
    the rollout: runners whose Rust setup does not provide cargo binstall
    fall back to cargo install --locked whitaker-installer instead of
    failing. The Cranelift-backed whitaker-installer --cranelift call is
    unchanged.
  • The existing no_std_fs_operations exclusion in rust/dylint.toml
    now carries a rationale: the extension crate never opens filesystem
    paths itself; it wraps raw file descriptors and handles received from
    the Python caller in std::fs::File.
  • The make lint command listing in AGENTS.md is synchronized with
    the new invocation.

The suite itself reports no findings; no code fixes were required.

Review walkthrough

Validation

  • RUSTFLAGS="-D warnings" whitaker --all -- --all-targets --all-features
    from rust/: exit 0, no findings.
  • make check-fmt lint typecheck test markdownlint nixie: all gates
    pass (Ruff, interrogate, pylint, cargo doc, Clippy, Whitaker, ty,
    pytest, cargo nextest, markdownlint-cli2, nixie).
  • mbake validate Makefile: valid syntax.

Cuprum already runs the Whitaker Dylint suite in `make lint` and in the
CI lint-test job. This change brings the wiring in line with the
conventions used across the estate rollout (see leynos/netsuke#410):

- Introduce a `WHITAKER ?= whitaker` tool variable in the Makefile and
  use it in the lint recipe, so the binary can be overridden like the
  other tools.
- Run Whitaker with `RUSTFLAGS="$(RUST_FLAGS)"` so warnings are denied
  during the lint build, matching the Clippy and test invocations, and
  mention Whitaker in the lint target's help text.
- Add a binstall-or-build fallback to the CI install step: runners
  whose Rust setup does not provide `cargo binstall` now fall back to
  `cargo install --locked whitaker-installer` instead of failing.
- Document a rationale for the existing `no_std_fs_operations`
  exclusion in rust/dylint.toml: the extension crate only wraps raw
  file descriptors and handles received from Python in std::fs::File
  and never opens filesystem paths itself.
- Sync the `make lint` command listing in AGENTS.md with the new
  Whitaker invocation.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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: 36 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: 8a293041-25d3-41fb-820e-11d59e1d487f

📥 Commits

Reviewing files that changed from the base of the PR and between af8b832 and c676aaf.

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

@leynos
leynos merged commit a53b7ae into main Jul 9, 2026
19 checks passed
@leynos
leynos deleted the adopt-whitaker branch July 9, 2026 18:15
leynos pushed a commit that referenced this pull request Jul 21, 2026
…216)

R503 previously said every function should end with an explicit return.
That conflicted with the narrower intent of R502 and led to requests for
bare `return` in procedures whose only possible result is `None`.

Scope the terminal-return requirement to functions that may return a value
elsewhere, and add a `GOOD` example showing all-`None` procedures do not
need a final `return`.

Co-authored-by: leynos <leynos@rohga>
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