diff options
| author | ruki <[email protected]> | 2026-04-07 23:45:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-07 23:45:21 +0800 |
| commit | 6f3849b09ebc38725b099493f4dd3e6caaa07aef (patch) | |
| tree | ab2a6c2376846709a3c8b899efc65d628f40e11a | |
| parent | 59c749bda81f4c0a99d41ee31adfbf931cd578f2 (diff) | |
improve run checker
| -rw-r--r-- | xmake/plugins/check/main.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xmake/plugins/check/main.lua b/xmake/plugins/check/main.lua index 92b670297..e0ce9cd6e 100644 --- a/xmake/plugins/check/main.lua +++ b/xmake/plugins/check/main.lua @@ -53,6 +53,13 @@ function _show_info(name) end end +-- run a single checker +function _run_checker(name, arguments) + checker.start(name) + import("private.check.checkers." .. name, {anonymous = true})(arguments) + checker.stop(name) +end + -- do check function _check(group_or_name, arguments) @@ -80,9 +87,7 @@ function _check(group_or_name, arguments) if showstats == nil and info and info.showstats ~= nil then showstats = info.showstats end - checker.start(name) - import("private.check.checkers." .. name, {anonymous = true})(arguments) - checker.stop(name) + _run_checker(name, arguments) end if showstats ~= false then checker.show_stats() |
