From 1b0d474c1c13cf73827c012d037df7f1b9fd0f76 Mon Sep 17 00:00:00 2001 From: theFox6 Date: Mon, 13 Aug 2018 16:44:24 +0200 Subject: [PATCH] divided into 2 luachecks --- .luacheck_tidy | 9 +++++++++ .luacheckrc | 4 +++- .travis.yml | 12 +++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .luacheck_tidy diff --git a/.luacheck_tidy b/.luacheck_tidy new file mode 100644 index 0000000..524d56c --- /dev/null +++ b/.luacheck_tidy @@ -0,0 +1,9 @@ +allow_defined_top = true + +read_globals = { + "minetest", + "dump", "vector", + "VoxelManip", "VoxelArea", + table = { fields = { "copy" } }, + "lightning", +} \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc index 524d56c..898c484 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -6,4 +6,6 @@ read_globals = { "VoxelManip", "VoxelArea", table = { fields = { "copy" } }, "lightning", -} \ No newline at end of file +} + +ignore = {"211", "212", "213", "631"} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index aa2caca..5e98cc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,18 @@ addons: - luarocks before_install: - luarocks install --local luacheck +env: + - CONFIG=.luacheckrc + - CONFIG=.luacheck_tidy +matrix: + exclude: + - name: "health check" + env: CONFIG=.luacheckrc + allow_failures: + - name: "beauty check" + env: CONFIG=.luacheck_tidy script: -- $HOME/.luarocks/bin/luacheck --no-color . +- $HOME/.luarocks/bin/luacheck --config $CONFIG . notifications: email: on_failure: change \ No newline at end of file