From 63bc754889d270dea5ced6f4d57425db51f38358 Mon Sep 17 00:00:00 2001 From: Buckaroo Banzai <39065740+BuckarooBanzay@users.noreply.github.com> Date: Wed, 4 Sep 2024 21:35:45 +0200 Subject: [PATCH] luacheck with builtin minetest (#109) * [PoC] luacheck with builtin minetest * switch to `minetest+max` std for luacheck * use branch in action * use SX's docker image * disable tty * Update .github/workflows/luacheck.yml Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com> * go back to upstream luacheck * fix globals listing --------- Co-authored-by: BuckarooBanzay Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com> --- .github/workflows/luacheck.yml | 2 +- .luacheckrc | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index b501650..3c99a99 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -7,4 +7,4 @@ jobs: - name: Checkout uses: actions/checkout@master - name: Luacheck - uses: lunarmodules/luacheck@master \ No newline at end of file + uses: lunarmodules/luacheck@master diff --git a/.luacheckrc b/.luacheckrc index ef7e76b..79d6ae7 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,6 +1,7 @@ unused_args = false max_line_length= 240 redefined = false +std = "minetest+max" globals = { "pipeworks", @@ -8,19 +9,9 @@ globals = { } read_globals = { - -- Stdlib - string = {fields = {"split"}}, - table = {fields = {"copy", "getn"}}, - - -- Minetest - "vector", "ItemStack", - "dump", "minetest", - "VoxelManip", "VoxelArea", - -- mods "default", "mesecon", "digiline", "screwdriver", "unified_inventory", "i3", "mcl_experience", "awards", - "xcompat", "fakelib", "vizlib", - + "xcompat", "fakelib", "vizlib" }