From 0fcf866d0835a663f9f6f76989becbbd2138eddc Mon Sep 17 00:00:00 2001 From: yangbo Date: Sat, 8 Oct 2022 17:27:54 +0800 Subject: [PATCH] update api_check_plugin Signed-off-by: yangbo Change-Id: I48693e96b555a742995e085667fe541f764a020f --- build-tools/api_check_plugin/entry.js | 1 + build-tools/api_check_plugin/src/api_check_plugin.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tools/api_check_plugin/entry.js b/build-tools/api_check_plugin/entry.js index 8c81ad7864..ef4efc25a0 100644 --- a/build-tools/api_check_plugin/entry.js +++ b/build-tools/api_check_plugin/entry.js @@ -18,6 +18,7 @@ const { writeResultFile } = require('./src/utils'); function checkEntry(url) { let result = "API CHECK FAILED!"; + __dirname = "interface/sdk-js/build-tools/api_check_plugin"; try { const execSync = require("child_process").execSync; execSync("cd interface/sdk-js/build-tools/api_check_plugin && npm install"); diff --git a/build-tools/api_check_plugin/src/api_check_plugin.js b/build-tools/api_check_plugin/src/api_check_plugin.js index c23cdb6105..43420ddf37 100644 --- a/build-tools/api_check_plugin/src/api_check_plugin.js +++ b/build-tools/api_check_plugin/src/api_check_plugin.js @@ -73,7 +73,7 @@ function checkAllNode(node, sourcefile, fileName) { // check apiNote spelling checkSpelling(node, sourcefile, fileName); // check syscap - checkSyscap(node, sourcefile, fileName); + // checkSyscap(node, sourcefile, fileName); // check deprecated checkDeprecated(node, sourcefile, fileName); // check permission -- Gitee