Merge branch 'master' into 'master'

Add luacheck config and ci job

See merge request VanessaE/pipeworks!37
This commit is contained in:
Vanessa Dannenberg 2021-02-25 16:34:42 +00:00
commit 9ad6e5d07a
2 changed files with 32 additions and 0 deletions

8
.gitlab-ci.yml Normal file

@ -0,0 +1,8 @@
stages:
- test
luacheck:
stage: test
image: pipelinecomponents/luacheck:latest
script:
- luacheck .

24
.luacheckrc Normal file

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