Luacheck: start drafting config file

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:03:40 +01:00
parent 73a9ff3d60
commit e10dd1ff2e
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 48 additions and 0 deletions

@ -40,3 +40,22 @@ jobs:
- name: Run Tests
run: ./tests.sh run
LuaCheck:
runs-on: ubuntu-latest
sets:
# Checkout the git repo
- name: Checkout
uses: actions/checkout@v2
- name: Install apt dependencies
run: sudo apt-get --quiet install lua5.1 lua-check
- name: uname -a
run: uname -a
- name: Lua version
run: lua -v
- name: Run luacheck
run: luacheck --config .tests/luacheckrc . || true

29
.tests/luacheckrc Normal file

@ -0,0 +1,29 @@
quiet = 1
codes = true
exclude_files = {
".luarocks/*"
}
ignore = {"631", "61[124]", "412", "21[123]"}
-- Read-write globals (i.e. they can be defined)
globals = {
"worldedit",
"worldeditadditions",
"worldeditadditions_commands",
"worldeditadditions_core"
}
-- Read-only globals
read_globals = {
"minetest",
"vector",
"assert",
"bit",
"it",
"describe",
"bonemeal",
"dofile"
}
std = "max"