mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +00:00
Luacheck: start drafting config file
This commit is contained in:
parent
73a9ff3d60
commit
e10dd1ff2e
2 changed files with 48 additions and 0 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
@ -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
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"
|
Loading…
Reference in a new issue