Repository navigation
fix(net): move NetworkDetector stub into fl::net namespace (#2817 lint follow-up) - #2829
Conversation
follow-up) The SubdirNamespaceChecker requires headers in src/fl/<subdir>/ to declare namespace fl::<subdir>. The cross-platform stub in src/fl/net/network_detector.h (added by #2817) was declaring the NetworkDetector class in `namespace fl`, triggering a lint violation. Move the stub into `namespace fl::net` and add a `using` alias in `namespace fl` so the existing consumers (`fl::NetworkDetector` in fl/channels/manager.cpp.hpp, fl/channels/driver.cpp.hpp) keep working without any churn. The real RMT5 implementation already lives in `namespace fl` at its own header and is unaffected. Pure lint fix, no behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Need an answer fast? Review this PR in Change Stack to ask focused questions about the PR or a changed range. Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR relocates the stub implementation of ChangesNamespace Reorganization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
Tiny lint follow-up to #2817.
SubdirNamespaceCheckerrequires headers insrc/fl/<subdir>/to declarenamespace fl::<subdir>- the cross-platform stub insrc/fl/net/network_detector.h(added by #2817) was declaring itsNetworkDetectorclass innamespace fl, triggering one persistent violation.Move the stub into
namespace fl::netand add ausingalias innamespace flso the existing consumers (fl::NetworkDetector::isAnyNetworkActive()infl/channels/manager.cpp.hppandfl/channels/driver.cpp.hpp) keep compiling without any churn.The real RMT5 implementation lives in
namespace flat its own header (platforms/esp/32/drivers/rmt/rmt_5/network_detector.h) and is unaffected by this change.Diff
Test plan
bash lint --cpp- all C++ linting checks pass (was 1 violation on master, now 0).staticaccessors are identical.Cross-references
🤖 Generated with Claude Code
Summary by CodeRabbit