From cc3fed228ef7ab6cefa696e5f29168de67f2c761 Mon Sep 17 00:00:00 2001 From: ainyan03 <205502311+ainyan03@users.noreply.github.com> Date: Fri, 28 Aug 2026 04:44:33 +0000 Subject: [PATCH 1/2] Fix the Arduino Lint errors in library.properties The includes field must list header files, not directories; arduino-lint rejected "src,src/utils" (LP052). List the primary header instead. Add StackChan-BSP.h as the primary header named after the library (LS008, best practice); it only includes M5StackChan.h so existing sketches are unaffected. --- library.properties | 2 +- src/StackChan-BSP.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/StackChan-BSP.h diff --git a/library.properties b/library.properties index 235d87e..41f27be 100644 --- a/library.properties +++ b/library.properties @@ -7,5 +7,5 @@ paragraph= category=Device Control url=https://github.com/m5stack/StackChan-BSP architectures=esp32 -includes=src,src/utils +includes=M5StackChan.h depends=M5Unified,IRremoteESP8266,M5Unit-NFC diff --git a/src/StackChan-BSP.h b/src/StackChan-BSP.h new file mode 100644 index 0000000..842e77d --- /dev/null +++ b/src/StackChan-BSP.h @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD + * + * SPDX-License-Identifier: MIT + */ +#pragma once +// Header named after the library (Arduino Library Specification); the API lives in M5StackChan.h +#include "M5StackChan.h" From c9c30a2567329255ab573806532ca765b52f2101 Mon Sep 17 00:00:00 2001 From: ainyan03 <205502311+ainyan03@users.noreply.github.com> Date: Fri, 28 Aug 2026 04:44:33 +0000 Subject: [PATCH 2/2] Lint as a library not yet in the Library Manager index With library-manager: update, arduino-lint fails on LP018 because StackChan-BSP is not in the Library Manager index, so the check has been red on every run. Use the "submit" mode, which applies the rules for a library that is about to be submitted (so the pre-registration checks stay active) without requiring the name to be in the index yet. Switch to "update" once the library has been accepted into the index. --- .github/workflows/Arduino-Lint-Check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Arduino-Lint-Check.yml b/.github/workflows/Arduino-Lint-Check.yml index de06bf0..ec28f5d 100644 --- a/.github/workflows/Arduino-Lint-Check.yml +++ b/.github/workflows/Arduino-Lint-Check.yml @@ -22,6 +22,6 @@ jobs: - uses: actions/checkout@v4 - uses: arduino/arduino-lint-action@v2 with: - library-manager: update + library-manager: submit compliance: strict project-type: all