Enable luacheck

This commit is contained in:
Niklp 2023-12-10 14:08:23 +01:00 committed by SmallJoker
parent 1f9875fced
commit f1fdabe0b0
7 changed files with 29 additions and 24 deletions

10
.github/workflows/luacheck.yml vendored Normal file
View 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

View File

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

View File

@ -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},