divided into 2 luachecks

This commit is contained in:
theFox6 2018-08-13 16:44:24 +02:00
parent 10e08de950
commit 1b0d474c1c
3 changed files with 23 additions and 2 deletions

9
.luacheck_tidy Normal file
View File

@ -0,0 +1,9 @@
allow_defined_top = true
read_globals = {
"minetest",
"dump", "vector",
"VoxelManip", "VoxelArea",
table = { fields = { "copy" } },
"lightning",
}

View File

@ -7,3 +7,5 @@ read_globals = {
table = { fields = { "copy" } }, table = { fields = { "copy" } },
"lightning", "lightning",
} }
ignore = {"211", "212", "213", "631"}

View File

@ -6,8 +6,18 @@ addons:
- luarocks - luarocks
before_install: before_install:
- luarocks install --local luacheck - 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: script:
- $HOME/.luarocks/bin/luacheck --no-color . - $HOME/.luarocks/bin/luacheck --config $CONFIG .
notifications: notifications:
email: email:
on_failure: change on_failure: change