Skip to content

chore(lint): document small singleton exceptions - #3894

Merged
zackees merged 1 commit into
masterfrom
fix/3488-singleton-small-sweep
Aug 18, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3488-singleton-small-sweep

Conversation

@zackees

@zackees zackees commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • document why the remaining small ESP-IDF handle globals should stay constant-initialized PODs
  • document the direct-storage requirement for LPC SysTick ISR state
  • document the ATtiny clock-correction byte's size-sensitive storage
  • clear every live SingletonElisionChecker hit in files with at most two violations, excluding the public FastLED surface

Verification

  • bash lint
  • bash compile attiny85 --examples Blink
  • bash compile esp32dev --examples Blink
  • bash test server --unit
  • bash test server_loopback --unit
  • focused SingletonElisionChecker scan: 33 warnings / 9 files -> 28 warnings / 6 files; no eligible <=2-hit modules remain
  • git diff --check
  • clud-review: clean

The LPC845 build did not reach compilation because the first-use arm-gcc 15.2.Rel1 package download stalled and timed out twice. This patch is annotation-only and does not alter LPC code generation.

Closes #3488

Summary by CodeRabbit

  • Chores
    • Added documentation for intentionally maintained global state across supported ESP-IDF, LPC, and ATtiny platform implementations.
    • Improved linting clarity without changing runtime behavior or public interfaces.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 18, 2026
@zackees
zackees merged commit 2fde0ea into master Aug 18, 2026
10 of 17 checks passed
@zackees
zackees deleted the fix/3488-singleton-small-sweep branch August 18, 2026 22:35
@coderabbitai

coderabbitai Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3bd31d1e-65e6-43c0-94dc-c7e58b827684

📥 Commits

Reviewing files that changed from the base of the PR and between af9582d and 72dfae0.

📒 Files selected for processing (3)
  • src/fl/stl/asio/http/server.cpp.hpp
  • src/platforms/arm/lpc/platform_time_lpc.cpp.hpp
  • src/platforms/avr/attiny/clockless_blocking.cpp.hpp

📝 Walkthrough

Walkthrough

Added lint suppression comments for intentional global state in ESP-IDF HTTP server code, LPC timing code, and ATtiny clockless code. No executable behavior or public declarations changed.

Changes

Intentional global state annotations

Layer / File(s) Summary
Global state lint annotations
src/fl/stl/asio/http/server.cpp.hpp, src/platforms/arm/lpc/platform_time_lpc.cpp.hpp, src/platforms/avr/attiny/clockless_blocking.cpp.hpp
Added lint annotations for constant-initialized ESP-IDF handles, LPC SysTick state, and ATtiny clock-correction state.

Estimated code review effort: 1 (Trivial) | ~2 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3488-singleton-small-sweep

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.

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.

singleton: sweep small (<=2-hit) files (Tier 1e)

1 participant