summaryrefslogtreecommitdiff
path: root/xmake/plugins/check/checkers/api/api_checker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-01 22:58:56 +0800
committerruki <[email protected]>2023-02-01 22:58:56 +0800
commit527419011e0bf460e3de4a08949bcaf9be160849 (patch)
treef3b8776beda6952978ad3aa6c3e10d867ef53ab8 /xmake/plugins/check/checkers/api/api_checker.lua
parentd2f69f28647643f501628a793fbc8d8a83728b84 (diff)
check package values
Diffstat (limited to 'xmake/plugins/check/checkers/api/api_checker.lua')
-rw-r--r--xmake/plugins/check/checkers/api/api_checker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/check/checkers/api/api_checker.lua b/xmake/plugins/check/checkers/api/api_checker.lua
index 6fc9c1cae..349a7b402 100644
--- a/xmake/plugins/check/checkers/api/api_checker.lua
+++ b/xmake/plugins/check/checkers/api/api_checker.lua
@@ -71,7 +71,7 @@ function check_targets(apiname, opt)
local values = target:get(apiname)
for _, value in ipairs(values) do
if not valueset:has(value) then
- _show(apiname, value, target, {level = "warning"})
+ _show(apiname, value, target, {level = opt.level or "warning"})
end
end
end