File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 99
99
if count == 0 then
100
100
print (lang .script (' CLI_CHECK_SUCCESS' ))
101
101
else
102
- local outpath = LOGPATH .. ' /check.json'
102
+ local outpath = CHECK_OUT_PATH
103
+ if outpath == nil then
104
+ outpath = LOGPATH .. ' /check.json'
105
+ end
103
106
util .saveFile (outpath , jsonb .beautify (results ))
104
107
105
108
print (lang .script (' CLI_CHECK_RESULTS' , count , outpath ))
Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ DOC = ''
55
55
--- @type string | ' "Error"' | ' "Warning"' | ' "Information"' | ' "Hint"'
56
56
CHECKLEVEL = ' Warning'
57
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
+
58
64
--- @type ' trace' | ' debug' | ' info' | ' warn' | ' error'
59
65
LOGLEVEL = ' warn'
60
66
You can’t perform that action at this time.
0 commit comments