diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ff51e7e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,8 @@ +stages: + - test + +luacheck: + stage: test + image: pipelinecomponents/luacheck:latest + script: + - luacheck . diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..9ba8cad --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,24 @@ +unused_args = false +max_line_length= 240 +redefined = false + +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" + +}