Skip to content

follow-up: refresh the CodeRabbit API-expansion rule after the fl/fs move #4009

Closed

Description

@zackees

Summary

The CodeRabbit public-API-expansion rule added in #4005 cites an API that has since changed twice. Its worked example is already stale, and #4008 will move every path it references. Review instructions that describe code which no longer exists are worse than none — they teach the reviewer a shape nobody can find.

Do this after #4008 lands, not before, or it will need doing twice.

What is stale

The rule (.coderabbit.yaml, path: "src/fl/**/*.h") uses a wrong-vs-right pair built on the LittleFS backend:

// WRONG — as written in the rule
class FileSystem {
    static FileSystem littleFs(bool format_on_fail = false);  // NEW
    bool beginLittleFs(bool format_on_fail = false);          // NEW
};

// RIGHT — as written in the rule
FsImplPtr make_littlefs_filesystem(bool format_on_fail = false) FL_NO_EXCEPT;

Neither spelling survives:

  1. make_littlefs_filesystem no longer exists. It became fl::getEmbeddedFs() in refactor(fs): expose embedded storage generically as fl::getEmbeddedFs() #4006, because naming a technology in the public API forces every platform — including the host stub — to hold an opinion about LittleFS (design: expose on-chip flash storage generically, not as make_littlefs_filesystem #4007). The rule currently teaches the exact naming mistake that issue exists to prevent.
  2. The paths move under refactor: consolidate the filesystem subsystem under src/fl/fs/ #4008. fl/system/file_system.h becomes fl/fs/fs.h; the glob src/fl/**/*.h still matches, but every path cited in the prose will be wrong.
  3. The FileSystem god-class evidence changes. The rule's motivating example is that FileSystem carries a member per format (openVideo, loadJpeg, openMp3, ...). refactor: consolidate the filesystem subsystem under src/fl/fs/ #4008 moves those to free functions in fl/fs/read.h, so the cautionary tale becomes a fixed problem rather than a live one — which is fine, but the rule should then cite it as history, not as the current state.

What to update

Related

Activity

  1. added a commit that references this issue on Aug 23, 2026
    48fa5cf
  2. moved this from Triage to Done in FastLED Trackeron Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions