From e83ea9c70398f9c893e9b3ef4e569a753feeecee Mon Sep 17 00:00:00 2001 From: Eben Eliason Date: Wed, 19 Apr 2023 17:11:44 -0700 Subject: [PATCH] Basic luacheck usage info --- luacheck/Luacheck.lua | 7 ++++++- tests/main.lua | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/luacheck/Luacheck.lua b/luacheck/Luacheck.lua index 61fa752..f319df1 100644 --- a/luacheck/Luacheck.lua +++ b/luacheck/Luacheck.lua @@ -1,4 +1,9 @@ --- Acetate globals +-- acetate globals +-- +-- Luacheck support is provided for only for acetate itself (not tests). To run it, +-- install `luacheck` via `luarocks`, then from the top level Acetate directory: +-- +-- % luacheck *.lua -- -- This file can also be used with toyboxpy (https://toyboxpy.io): -- diff --git a/tests/main.lua b/tests/main.lua index d5ef13a..f92931a 100644 --- a/tests/main.lua +++ b/tests/main.lua @@ -14,8 +14,6 @@ gfx.drawTextAligned("open console", 200, 132, cnt) luaunit.PRINT_TABLE_REF_IN_ERROR_MSG = true -- process the command line args (if any) -local testOutputFilename = "test_output" -local outputType = "text" local luaunit_args = {'--output', 'text', '--verbose', '-r'} -- run the tests