Skip to content

chore(lane): daily maintenance 2026-11-03 - #140

Merged
kirillDevPro merged 1 commit into
masterfrom
lane/daily-2026-11-03
Nov 3, 2026
Merged

kirillDevPro merged 1 commit into
masterfrom
lane/daily-2026-11-03

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

Fix

Filed by the fix lane.

Fixes #138

function_body_uses_param (xtask/src/component_audit/source_metrics.rs) matched a builder parameter as a substring, so a builder taking _id whose body calls with_identity() read as using it and escaped the noop_public_api_markers count. It now counts a mention only when neither neighbouring character is _ or ASCII alphanumeric.

  • Test: function_body_usage_matches_whole_identifiers_only in xtask/src/component_audit/source_metrics/tests.rs failed before with assertion failed: !function_body_uses_param(&unused, 0, "_id") and passes now. Re-run: cargo test -p xtask function_body_usage.
  • cargo xtask component-audit --check-baseline still passes: no builder in the current tree is newly counted.
  • Reviewer: Codex (no objections).

Quiet jobs

  • Leftovers: no open lane pull requests.
  • Docs: docs/PALETTE_SPEC.md, docs/COMPONENT_AUDIT.md, crates/moon-gpui/README.md and crates/moon-ui-gallery/README.md checked against the code; all current.
  • Review: d5baf53, f12793a (fix(input): apply MoonInput placeholder to an external state #137) and 6a64da2 reviewed; no demonstrable defect.

Filed by the fix lane.

Fixes #138

function_body_uses_param matched the parameter as a substring, so a
builder taking `_id` and calling `with_identity()` read as using it and
escaped the noop_public_api_markers count. It now counts a mention only
when neither neighbouring character is `_` or ASCII alphanumeric.

Test: function_body_usage_matches_whole_identifiers_only in
xtask/src/component_audit/source_metrics/tests.rs failed before with
`assertion failed: !function_body_uses_param(&unused, 0, "_id")` and
passes now. Re-run: cargo test -p xtask function_body_usage
cargo xtask component-audit --check-baseline still passes (no builder
newly counted).

Reviewer: Codex (PASS, no objections).
@kirillDevPro
kirillDevPro merged commit e6034ee into master Nov 3, 2026
4 checks passed
@kirillDevPro
kirillDevPro deleted the lane/daily-2026-11-03 branch November 3, 2026 05:16
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.

xtask no-op builder audit matches a parameter as a substring and misses the no-op

1 participant