Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luacheck with builtin minetest #109

Merged
merged 10 commits into from
Sep 4, 2024
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"
}