summaryrefslogtreecommitdiff
path: root/xmake/plugins/check/checkers/api/api_checker.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/check/checkers/api/api_checker.lua')
-rw-r--r--xmake/plugins/check/checkers/api/api_checker.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/plugins/check/checkers/api/api_checker.lua b/xmake/plugins/check/checkers/api/api_checker.lua
index 349a7b402..b48cd56e6 100644
--- a/xmake/plugins/check/checkers/api/api_checker.lua
+++ b/xmake/plugins/check/checkers/api/api_checker.lua
@@ -27,10 +27,9 @@ import("core.project.project")
function _show(apiname, value, target, opt)
opt = opt or {}
- -- match level?
+ -- match level? verbose: note/warning/error, default: warning/error
local level = opt.level
- local level_option = option.get("level")
- if level_option and level_option ~= "all" and level_option ~= level then
+ if not option.get("verbose") and level == "note" then
return
end