mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-03-02 14:21:40 +00:00
fix:api_hump_check关闭无api版本号检查
Signed-off-by: fanjiaojiao <fanjiaojiao@huawei.com>
This commit is contained in:
parent
a8793fa86e
commit
2d50a35978
@ -86,7 +86,7 @@ function checkAPINameOfHump(node, sourcefile, fileName) {
|
||||
}
|
||||
}
|
||||
|
||||
if (checkResult !== "" && filterApiVersion(node, '10')) {
|
||||
if (filterApiVersion(node, '10')) {
|
||||
addAPICheckErrorLogs(node.name, sourcefile, fileName, ErrorType.NAMING_ERRORS, checkResult, LogType.LOG_API,
|
||||
ErrorLevel.MIDDLE);
|
||||
}
|
||||
@ -114,7 +114,7 @@ function checkAPIFileName(sourcefile, fileName) {
|
||||
} else if (moduleName === "" && exportAssignment !== moduleName && !checkSmallHump(lastModuleName)) {
|
||||
checkResult = `This API file should be named by large hump.`;
|
||||
}
|
||||
if (checkResult !== "" && filterApiVersion(node, '10')) {
|
||||
if (filterApiVersion(soucefile, '10')) {
|
||||
addAPICheckErrorLogs(sourcefile, sourcefile, fileName, ErrorType.NAMING_ERRORS, checkResult, LogType.LOG_FILE,
|
||||
ErrorLevel.MIDDLE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user