diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2021-02-25 16:34:42 +0000 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2021-02-25 16:34:42 +0000 |
commit | 9ad6e5d07a1600273153e561be832cfb3c5c5171 (patch) | |
tree | d91311b337ec666d37bce689e3cb8e34a33aa318 | |
parent | a735d1a1552eb1d9de18244bbae1ee21ddeabc9b (diff) | |
parent | 31e125524550c7d18343bfd5bd3b0cae8bc291dc (diff) | |
download | pipeworks-9ad6e5d07a1600273153e561be832cfb3c5c5171.tar pipeworks-9ad6e5d07a1600273153e561be832cfb3c5c5171.tar.gz pipeworks-9ad6e5d07a1600273153e561be832cfb3c5c5171.tar.bz2 pipeworks-9ad6e5d07a1600273153e561be832cfb3c5c5171.tar.xz pipeworks-9ad6e5d07a1600273153e561be832cfb3c5c5171.zip |
Merge branch 'master' into 'master'
Add luacheck config and ci job
See merge request VanessaE/pipeworks!37
-rw-r--r-- | .gitlab-ci.yml | 8 | ||||
-rw-r--r-- | .luacheckrc | 24 |
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" + +} |