Skip to content

docs: #3308 retire stale references to deleted Python C++ checkers - #3319

Merged
zackees merged 2 commits into
masterfrom
fix/3308c-doc-cleanup
Jun 20, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/3308c-doc-cleanup

Conversation

@zackees

@zackees zackees commented Jun 20, 2026 •

Copy link
Copy Markdown
Member

Summary

After PR #3293 migrated the C++ checker fleet from Python to the Rust crate at ci/lint_cpp_rs/, several docs and configs still pointed at deleted .py files. This PR retires every stale reference and redirects it to the live Rust target.

Files changed (9)

  • agents/docs/linter-architecture.md — rewrote "When to still use Python" section; only the 3 Tier-4 AST ratchets remain in Python.
  • agents/docs/cpp-standards.md — Public Settings allowlist now points at ci/lint_cpp_rs/src/checkers/public_settings.rs::PUBLIC_SETTINGS_GRANDFATHERED.
  • .claude/agents/cpp-linter-builder-agent.md — replaced deleted test_unity_build.py / test_aggregation_checker.py / pch_file_checker.py with ci/lint_cpp_rs/src/checkers/unity_build.rs and structural_passes.rs.
  • .claude/agents/architecture-reviewer-agent.md — updated PublicSettings pointer to Rust.
  • .claude/commands/code_review.md — same update.
  • ci/dependencies.json — pruned tools array to surviving entries (run_all_checkers.py, rust_bridge.py, rust_binary_cache.py, noexcept_checker.py) plus the Rust crate.
  • src/fl/stl/compiler_control.h — FL_NO_INLINE comment redirected to BareNoInlineChecker in ci/lint_cpp_rs/src/checkers/bare_legacy.rs.
  • ci/fix_has_include_README.md — rewrote the retired-rule paragraph per Follow-up to #3288/#3297: red-team gaps in the Rust C++ linter migration #3308 acceptance criterion.
  • ci/fix_has_include.py — added docstring marking it manual-only (orphan tool disposition).

Test plan

  • bash lint --cpp passes
  • python -m json.tool ci/dependencies.json parses
  • Sweep grep for deleted ci/lint_cpp/*_checker.py references returns 0 hits outside ci/lint_cpp_rs/ migration comments
  • Verified every Rust pointer target exists (e.g. struct PublicSettingsPatternChecker, PUBLIC_SETTINGS_GRANDFATHERED, BareNoInlineChecker)

Refs #3308.

Generated with Claude Code.

Summary by CodeRabbit

  • Documentation

    • Updated “Public Settings Pattern” guidance in multiple guides to match the current transitional allowlist name and updated “Check Process” wording.
    • Refreshed guidance on when to still use Python, clarifying Rust-first behavior for most checks and limiting Python to specific AST ratchets.
    • Updated docs for the retained manual fix_has_include utility and its (non-)enforcement status.
  • Chores

    • Updated CI tooling/config descriptions to reflect Rust-based checker orchestration and consolidated checker entry points.
    • Adjusted an internal header comment to point to the current Rust lint check location.

After #3293 migrated the C++ checker fleet from Python to the Rust
crate at ci/lint_cpp_rs/, several docs and configs still pointed at
deleted .py files. Update every stale pointer to the live Rust target
and prune the stale checker list in ci/dependencies.json.

- agents/docs/linter-architecture.md: rewrite "When to still use
  Python" — only the 3 Tier-4 AST ratchets remain in Python.
- agents/docs/cpp-standards.md: point Public Settings allowlist at
  ci/lint_cpp_rs/src/checkers/public_settings.rs::PUBLIC_SETTINGS_GRANDFATHERED.
- .claude/agents/cpp-linter-builder-agent.md: replace deleted unity /
  aggregation / pch py paths with the Rust analogues.
- .claude/agents/architecture-reviewer-agent.md: update PublicSettings
  pointer to the Rust checker.
- .claude/commands/code_review.md: same update.
- ci/dependencies.json: prune the tools array to surviving entries
  (run_all_checkers.py, rust_bridge.py, rust_binary_cache.py,
  noexcept_checker.py) plus the ci/lint_cpp_rs/ crate.
- src/fl/stl/compiler_control.h: redirect FL_NO_INLINE comment to
  BareNoInlineChecker in ci/lint_cpp_rs/src/checkers/bare_legacy.rs.
- ci/fix_has_include_README.md: rewrite the retired-rule paragraph
  per #3308 acceptance criterion.
- ci/fix_has_include.py: add docstring marking it manual-only.

Verified: bash lint --cpp passes; ci/dependencies.json parses; sweep
grep returns 0 hits outside ci/lint_cpp_rs/ migration comments.

Refs #3308.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a685590f-ab62-435a-856f-6eefe420381a

📥 Commits

Reviewing files that changed from the base of the PR and between 3a67d8c and 514140e.

📒 Files selected for processing (1)
  • agents/docs/linter-architecture.md
✅ Files skipped from review due to trivial changes (1)
  • agents/docs/linter-architecture.md

📝 Walkthrough

Walkthrough

Stale references to Python-based C++ lint checker paths, allowlist identifiers, and Python-held responsibilities are updated across agent docs, command docs, standards docs, ci/dependencies.json, ci/fix_has_include.py, ci/fix_has_include_README.md, and src/fl/stl/compiler_control.h to reflect the Rust migration completed in PR #3293.

Changes

Python→Rust linter reference cleanup

Layer / File(s) Summary
PUBLIC_SETTINGS_GRANDFATHERED allowlist reference updates
.claude/agents/architecture-reviewer-agent.md, .claude/commands/code_review.md, agents/docs/cpp-standards.md
The Public Settings Pattern rule in three doc files replaces the Python GRANDFATHERED_NAMES allowlist reference with PUBLIC_SETTINGS_GRANDFATHERED in ci/lint_cpp_rs/src/checkers/public_settings.rs; surrounding rule text and grandfathered examples are unchanged.
Linter architecture and cross-file checker scope docs
agents/docs/linter-architecture.md, .claude/agents/cpp-linter-builder-agent.md
linter-architecture.md rewrites the "When to still use Python" section to restrict Python to AST ratchets only and assign all other checks to the Rust crate; the cpp-linter-builder-agent doc updates the cross-file structural checks bullet to name unity_build.rs and structural_passes.rs.
CI dependencies, fix_has_include status, and source comment
ci/dependencies.json, ci/fix_has_include.py, ci/fix_has_include_README.md, src/fl/stl/compiler_control.h
ci/dependencies.json consolidates the cpp_lint.tools array to reflect Rust-first orchestration; fix_has_include.py gains a docstring recording its retired CI pairing; the README updates the status note to reference #3308; compiler_control.h's comment switches the referenced lint path to bare_legacy.rs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#2715: The main PR updates the Public Settings Pattern allowlist name from the Python GRANDFATHERED_NAMES introduced by this earlier PR to the Rust PUBLIC_SETTINGS_GRANDFATHERED identifier.

Poem

🐇 Hop hop, the Python paths must go,
Rust checkers bloom where old scripts used to grow.
GRANDFATHERED_NAMES? No, that's now _GRANDFATHERED in Rust!
From .claude/ to dependencies.json we swept up the dust.
The linter-architecture shines bright and clear—
AST ratchets stay Python, all else is now here! 🦀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the primary change: removing stale documentation and configuration references to Python checkers that were deleted during PR #3293's Rust migration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3308c-doc-cleanup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@agents/docs/linter-architecture.md`:
- Around line 155-161: In the linter-architecture.md file, correct the
quantifier in the statement about Tier-4 AST ratchets. Change "three remaining
Tier-4 AST ratchets" to "two remaining Tier-4 AST ratchets" since only two AST
ratchets are listed and described: run_noexcept_ast_check and
run_array_param_ast_check.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 297dd8af-0d03-4d5c-b16b-6551618d4cfc

📥 Commits

Reviewing files that changed from the base of the PR and between d20d978 and 3a67d8c.

📒 Files selected for processing (9)
  • .claude/agents/architecture-reviewer-agent.md
  • .claude/agents/cpp-linter-builder-agent.md
  • .claude/commands/code_review.md
  • agents/docs/cpp-standards.md
  • agents/docs/linter-architecture.md
  • ci/dependencies.json
  • ci/fix_has_include.py
  • ci/fix_has_include_README.md
  • src/fl/stl/compiler_control.h

Comment thread agents/docs/linter-architecture.md Resolved
The clang-query AST tier consists of two distinct ratchets (noexcept
and decayed array params) implemented across three Python files (the
orchestrator function file + two clang-query backends). Update the
sentence so the rule count matches CodeRabbit's reading while still
hinting at the file count the #3308 verification command surfaces.

Refs #3308.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees merged commit 45474b5 into master Jun 20, 2026
14 of 15 checks passed
@zackees
zackees deleted the fix/3308c-doc-cleanup branch June 20, 2026 06:12
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant