mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
Add luacheck config and ci job
This commit is contained in:
parent
a735d1a155
commit
31e1255245
8
.gitlab-ci.yml
Normal file
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
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"
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user