mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-03-01 14:24:39 +01:00
Luacheck: start drafting config file
This commit is contained in:
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
@ -40,3 +40,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: ./tests.sh run
|
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"
|
Reference in New Issue
Block a user