We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--check_out_path
1 parent adde1d0 commit 00ad081Copy full SHA for 00ad081
2 files changed
script/cli/check.lua
@@ -99,7 +99,10 @@ end
99
if count == 0 then
100
print(lang.script('CLI_CHECK_SUCCESS'))
101
else
102
- local outpath = LOGPATH .. '/check.json'
+ local outpath = CHECK_OUT_PATH
103
+ if outpath == nil then
104
+ outpath = LOGPATH .. '/check.json'
105
+ end
106
util.saveFile(outpath, jsonb.beautify(results))
107
108
print(lang.script('CLI_CHECK_RESULTS', count, outpath))
script/global.d.lua
@@ -55,6 +55,12 @@ DOC = ''
55
---@type string | '"Error"' | '"Warning"' | '"Information"' | '"Hint"'
56
CHECKLEVEL = 'Warning'
57
58
+--Where to write the check results (JSON).
59
+--
60
+--If nil, use `LOGPATH/check.json`.
61
+---@type string|nil
62
+CHECK_OUT_PATH = ''
63
+
64
---@type 'trace' | 'debug' | 'info' | 'warn' | 'error'
65
LOGLEVEL = 'warn'
66
0 commit comments