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 <BuckarooBanzay@users.noreply.github.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
This commit is contained in:
Buckaroo Banzai 2024-09-04 21:35:45 +02:00 committed by GitHub
parent 171faec7e9
commit 63bc754889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 12 deletions

@ -1,6 +1,7 @@
unused_args = false unused_args = false
max_line_length= 240 max_line_length= 240
redefined = false redefined = false
std = "minetest+max"
globals = { globals = {
"pipeworks", "pipeworks",
@ -8,19 +9,9 @@ globals = {
} }
read_globals = { read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
-- Minetest
"vector", "ItemStack",
"dump", "minetest",
"VoxelManip", "VoxelArea",
-- mods -- mods
"default", "mesecon", "digiline", "default", "mesecon", "digiline",
"screwdriver", "unified_inventory", "screwdriver", "unified_inventory",
"i3", "mcl_experience", "awards", "i3", "mcl_experience", "awards",
"xcompat", "fakelib", "vizlib", "xcompat", "fakelib", "vizlib"
} }