Skip to content

Commit

Permalink
luacheck with builtin minetest (#109)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

* go back to upstream luacheck

* fix globals listing

---------

Co-authored-by: BuckarooBanzay <[email protected]>
Co-authored-by: SX <[email protected]>
  • Loading branch information
3 people authored Sep 4, 2024
1 parent 171faec commit 63bc754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Luacheck
uses: lunarmodules/luacheck@master
uses: lunarmodules/luacheck@master
13 changes: 2 additions & 11 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
unused_args = false
max_line_length= 240
redefined = false
std = "minetest+max"

globals = {
"pipeworks",
"luaentity"
}

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"
}

0 comments on commit 63bc754

Please sign in to comment.