Enable luacheck
This commit is contained in:
parent
1f9875fced
commit
f1fdabe0b0
10
.github/workflows/luacheck.yml
vendored
Normal file
10
.github/workflows/luacheck.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: luacheck
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
luacheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Luacheck
|
||||||
|
uses: lunarmodules/luacheck@master
|
20
.luacheckrc
20
.luacheckrc
@ -1,20 +1,16 @@
|
|||||||
unused_args = false
|
unused_args = false
|
||||||
allow_defined_top = true
|
max_line_length = 140
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
"doors",
|
"minetest",
|
||||||
"DIR_DELIM",
|
"vector",
|
||||||
"minetest", "core",
|
|
||||||
"dump",
|
|
||||||
"vector", "nodeupdate",
|
|
||||||
"VoxelManip", "VoxelArea",
|
|
||||||
"PseudoRandom", "ItemStack",
|
|
||||||
"intllib",
|
|
||||||
"default",
|
"default",
|
||||||
"armor",
|
"doors",
|
||||||
|
"stairs",
|
||||||
|
"stairsplus",
|
||||||
|
"mesecon",
|
||||||
}
|
}
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
core = { fields = { "do_item_eat" }},
|
"mydoors"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ local function add_door(color, desc, img)
|
|||||||
my_door_wood_block_stairs("my_door_wood:wood_"..color, {
|
my_door_wood_block_stairs("my_door_wood:wood_"..color, {
|
||||||
description = desc.." Wood",
|
description = desc.." Wood",
|
||||||
drawtype = "normal",
|
drawtype = "normal",
|
||||||
paramtype = "light",
|
|
||||||
tiles = {"mydoors_"..img.."_wood.png"},
|
tiles = {"mydoors_"..img.."_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky = 2, choppy = 2, wood = 1},
|
groups = {cracky = 2, choppy = 2, wood = 1},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user