From 4dc00a5fb334eca586aa6735febdc3d296bfc85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E6=A5=BC?= Date: Fri, 8 Aug 2025 07:15:34 +0000 Subject: [PATCH] update ets2panda/linter/src/cli/LinterCLI.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 方楼 --- ets2panda/linter/src/cli/LinterCLI.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ets2panda/linter/src/cli/LinterCLI.ts b/ets2panda/linter/src/cli/LinterCLI.ts index 447a2358d1..a4ce8a6db7 100644 --- a/ets2panda/linter/src/cli/LinterCLI.ts +++ b/ets2panda/linter/src/cli/LinterCLI.ts @@ -128,6 +128,9 @@ async function executeHomeCheckTask(scanTaskRelatedInfo: ScanTaskRelatedInfo): P migrationTool = null; scanTaskRelatedInfo.homeCheckResult = transferIssues2ProblemInfo(result); for (const [filePath, problems] of scanTaskRelatedInfo.homeCheckResult) { + if (!scanTaskRelatedInfo.cmdOptions.scanWholeProjectInHomecheck && !scanTaskRelatedInfo.cmdOptions.inputFiles.includes(filePath)) { + continue; + } if (!scanTaskRelatedInfo.mergedProblems.has(filePath)) { scanTaskRelatedInfo.mergedProblems.set(filePath, []); } -- Gitee