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 9999if count == 0 then
100100 print (lang .script (' CLI_CHECK_SUCCESS' ))
101101else
102- local outpath = LOGPATH .. ' /check.json'
102+ local outpath = CHECK_OUT_PATH
103+ if outpath == nil then
104+ outpath = LOGPATH .. ' /check.json'
105+ end
103106 util .saveFile (outpath , jsonb .beautify (results ))
104107
105108 print (lang .script (' CLI_CHECK_RESULTS' , count , outpath ))
Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ DOC = ''
5555--- @type string | ' "Error"' | ' "Warning"' | ' "Information"' | ' "Hint"'
5656CHECKLEVEL = ' Warning'
5757
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+
5864--- @type ' trace' | ' debug' | ' info' | ' warn' | ' error'
5965LOGLEVEL = ' warn'
6066
You can’t perform that action at this time.
0 commit comments