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:
parent
171faec7e9
commit
63bc754889
2
.github/workflows/luacheck.yml
vendored
2
.github/workflows/luacheck.yml
vendored
@ -7,4 +7,4 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
- name: Luacheck
|
||||
uses: lunarmodules/luacheck@master
|
||||
uses: lunarmodules/luacheck@master
|
||||
|
13
.luacheckrc
13
.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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user