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