add github luacheck workflow and various luacheck fixes
This commit is contained in:
parent
e128b43b0a
commit
7f1cf733c5
|
@ -0,0 +1,11 @@
|
|||
|
||||
name: luacheck
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: Roang-zero1/factorio-mod-luacheck@master
|
||||
with:
|
||||
luacheckrc_url: ""
|
|
@ -1,20 +0,0 @@
|
|||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_comment_line_length = 999
|
||||
|
||||
read_globals = {
|
||||
"DIR_DELIM",
|
||||
"minetest", "core",
|
||||
"unpack",
|
||||
"dump",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"vector", "nodeupdate",
|
||||
"VoxelManip", "VoxelArea",
|
||||
"PseudoRandom", "ItemStack",
|
||||
"default",
|
||||
"homedecor",
|
||||
}
|
||||
|
||||
globals = {
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ local tabletop_materials = {
|
|||
}
|
||||
}
|
||||
|
||||
leg_materials = {
|
||||
local leg_materials = {
|
||||
{ "brass", S("brass") },
|
||||
{ "wrought_iron", S("wrought iron") },
|
||||
{ "wood", S("wood") }
|
||||
|
@ -55,7 +55,7 @@ local tables_cbox = {
|
|||
}
|
||||
|
||||
for i, mat in ipairs(tabletop_materials) do
|
||||
local m, small_s, small_r, large = unpack(mat)
|
||||
local m = unpack(mat)
|
||||
local s
|
||||
|
||||
if m == "glass" then
|
||||
|
@ -101,7 +101,7 @@ for i, mat in ipairs(tabletop_materials) do
|
|||
})
|
||||
|
||||
for _, l in ipairs(leg_materials) do
|
||||
local leg_mat, desc = unpack(l)
|
||||
local leg_mat = unpack(l)
|
||||
|
||||
homedecor.register(string.format("%s_table_%s_with_%s_legs", m, shape, leg_mat), {
|
||||
description = string.format("%s %s table with %s legs", shape, m, leg_mat),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = homedecor_tables
|
||||
description = Homedecor mod: tables
|
||||
depends = homedecor_common, default, basic_materials
|
||||
optional_depends = creative
|
||||
depends = homedecor_common
|
||||
optional_depends = creative, default, basic_materials
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
if not minetest.get_modpath("player_api") then return end
|
||||
|
||||
local S = minetest.get_translator("homedecor_wardrobe")
|
||||
modpath = minetest.get_modpath("homedecor_wardrobe")
|
||||
local modpath = minetest.get_modpath("homedecor_wardrobe")
|
||||
|
||||
local wd_cbox = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue