From f3bc22d577ce92e63c2f9d5803203fcc5d5406c1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 20 Apr 2026 16:58:03 +0100 Subject: [PATCH] ci: allow empty extension channel lint --- scripts/lib/run-extension-oxlint.mjs | 5 ++++- scripts/run-extension-channel-oxlint.mjs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/lib/run-extension-oxlint.mjs b/scripts/lib/run-extension-oxlint.mjs index 25b0484daa2..405f28e687b 100644 --- a/scripts/lib/run-extension-oxlint.mjs +++ b/scripts/lib/run-extension-oxlint.mjs @@ -28,7 +28,10 @@ export function runExtensionOxlint(params) { ); if (extensionFiles.length === 0) { - console.error(params.emptyMessage); + console.log(params.emptyMessage); + if (params.allowEmpty === true) { + return; + } process.exit(1); } diff --git a/scripts/run-extension-channel-oxlint.mjs b/scripts/run-extension-channel-oxlint.mjs index 12efdb617ff..a874ab022d5 100644 --- a/scripts/run-extension-channel-oxlint.mjs +++ b/scripts/run-extension-channel-oxlint.mjs @@ -7,4 +7,5 @@ runExtensionOxlint({ lockName: "oxlint-extension-channels", tempDirPrefix: "openclaw-extension-channel-oxlint-", emptyMessage: "No extension channel files found.", + allowEmpty: true, });