Repository navigation
chore(lint): clear 6 lint violations + accept ruff reformat - #3215
Conversation
Pre-existing violations surfaced by the Stop hook lint run: 1. src/fl/stl/json/types.impl.hpp -> types_impl.h (rename). ImplHppIncludesChecker forbids non-router files from including *.impl.hpp. types.h is not a router file, so the include violated the rule. Renaming to types_impl.h removes the impl-suffix and the inline impl now ships as a regular private header. 2. src/fl/stl/json/types.h: include site moved from line 1760 (after the namespace fl closing brace) to right above the namespace fl opening. Fixes both IncludeAfterNamespaceChecker and NamespaceIncludesChecker. 3. src/fl/stl/json/types_impl.h: switch the two reinterpret_cast calls in json_bit_copy to fl::bit_cast_ptr (already used elsewhere in src/fl). Fixes ReinterpretCastChecker. 4. src/fl/math/screenmap.cpp.hpp:373 FL_WARN -> FL_WARN_F per LegacyLogMacroChecker. 5. ci/autoresearch/phases.py: accept the ruff-format reformat (three long-line wraps in argument-or-chains and print() calls). Verified: bash lint --cpp clean (only pre-existing warn-only #2701 PlatformIO-internal-usage remains); bash test fl_stl_json --cpp passes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThree small C++ fixes: ChangesC++ source changes
CI phases.py line-wrapping
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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
Stop-hook lint flagged 6 violations (4 in PR #3211's new
types.impl.hpp, 1 inscreenmap.cpp.hpp, plus a 1-file ruff reformat). All cleared in one commit.Changes
src/fl/stl/json/types.impl.hpp->types_impl.h— rename.ImplHppIncludesCheckerforbids non-router files from including*.impl.hpp;types.hisn't a router. Renaming totypes_impl.hremoves the impl-suffix and the inline impl ships as a regular private header.src/fl/stl/json/types.h— moved the include from line 1760 (after} // namespace fl) to right above the namespace opening. FixesIncludeAfterNamespaceChecker+NamespaceIncludesChecker.src/fl/stl/json/types_impl.h—json_bit_copynow usesfl::bit_cast_ptr<>instead ofreinterpret_cast(matches the establishedsrc/fl/channels/detail/wave8.hpppattern). FixesReinterpretCastChecker.src/fl/math/screenmap.cpp.hpp:373—FL_WARN->FL_WARN_F. FixesLegacyLogMacroChecker.ci/autoresearch/phases.py— accept the ruff reformat (three long-line wraps in chainedorargs andprint()calls).Test plan
bash lint --cppclean (only pre-existing warn-only ci: sweep PlatformIO build usage and add linters that enforce fbuild-only board builds #2701PlatformIO-internal-usageremains).bash test fl_stl_json --cpppasses (44s).Source of violations: introduced by the recent merge of #3211 (
fix(json): use integer float conversion for low-memory JSON) which landed without local C++ lint validation. Not flagged by GitHub CI because these checkers run as Stop-hook tooling rather than as a required GitHub check.🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Refactor