Add luacheck config and ci job

This commit is contained in:
Buckaroo Banzai 2021-02-25 16:34:42 +00:00 committed by Vanessa Dannenberg
parent a735d1a155
commit 31e1255245
2 changed files with 32 additions and 0 deletions

8
.gitlab-ci.yml Normal file
View File

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

24
.luacheckrc Normal file
View 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"
}