diff options
| author | ruki <[email protected]> | 2023-02-01 22:52:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-01 22:52:27 +0800 |
| commit | a4325b99fd3c359c213818f17509c5b3d3aaceb2 (patch) | |
| tree | f8f57b433b3d0593fb96de039278c2c9d13e909d /xmake/plugins/check/main.lua | |
| parent | 1d5b2c93ffbd1c97d663f6d4ffcf5f9964a0b04e (diff) | |
show api results
Diffstat (limited to 'xmake/plugins/check/main.lua')
| -rw-r--r-- | xmake/plugins/check/main.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/plugins/check/main.lua b/xmake/plugins/check/main.lua index e2479526d..da57e437d 100644 --- a/xmake/plugins/check/main.lua +++ b/xmake/plugins/check/main.lua @@ -21,6 +21,7 @@ -- imports import("core.base.option") import("core.base.text") +import("core.project.config") import("checker") -- show checkers list @@ -54,6 +55,11 @@ end -- do check function _check(group_or_name, arguments) + + -- load config + config.load() + + -- get checkers local checked_checkers = {} local checkers = checker.checkers() if checkers[group_or_name] then @@ -66,6 +72,8 @@ function _check(group_or_name, arguments) end end assert(#checked_checkers > 0, "checker(%s) not found!", group_or_name) + + -- do checkers for _, name in ipairs(checked_checkers) do import("checkers." .. name, {anonymous = true})(arguments) end |
