Skip to content

FASTLED_SAMD51_HW_SPI violates the FL_ macro standard and is already on master #4021

Description

@zackees

Defect

FASTLED_SAMD51_HW_SPI violates the repo's own macro standard, and it is already on master (shipped in #4015).

src/platforms/arm/d51/spi_hw_2_samd51.cpp.hpp:48
src/platforms/arm/d51/spi_hw_4_samd51.cpp.hpp:41
src/platforms/arm/d51/spi_hw_manager_samd51.cpp.hpp:27
    #if defined(FL_IS_SAMD51) && defined(FASTLED_SAMD51_HW_SPI)

agents/docs/cpp-standards.md is explicit: new FASTLED_* macros are a violation; use FL_<COMPONENT>_<NAME>.

Why it slipped

The identical mistake was caught by review on #4019 — FASTLED_ESP8266_EMBEDDED_FS was renamed to FL_ESP8266_EMBEDDED_FS — but the SAMD51 one was introduced in a different PR that had already merged, so nothing re-checked it. Two instances of one mistake, one caught and one not, is a sign the rule is not enforced anywhere mechanical.

Fix

Research: is a lint rule feasible without flagging the large body of pre-existing FASTLED_* macros? A baseline ratchet (as noexcept_baseline.txt does) would allow existing ones and block new.

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