summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBuckaroo Banzai <postmaster@rudin.io>2021-02-25 16:34:42 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2021-02-25 16:34:42 +0000
commit31e125524550c7d18343bfd5bd3b0cae8bc291dc (patch)
treed91311b337ec666d37bce689e3cb8e34a33aa318
parenta735d1a1552eb1d9de18244bbae1ee21ddeabc9b (diff)
downloadpipeworks-31e125524550c7d18343bfd5bd3b0cae8bc291dc.tar
pipeworks-31e125524550c7d18343bfd5bd3b0cae8bc291dc.tar.gz
pipeworks-31e125524550c7d18343bfd5bd3b0cae8bc291dc.tar.bz2
pipeworks-31e125524550c7d18343bfd5bd3b0cae8bc291dc.tar.xz
pipeworks-31e125524550c7d18343bfd5bd3b0cae8bc291dc.zip
Add luacheck config and ci job
-rw-r--r--.gitlab-ci.yml8
-rw-r--r--.luacheckrc24
2 files changed, 32 insertions, 0 deletions
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"
+
+}