ci / luacheck update
This commit is contained in:
parent
4c762d4f32
commit
46dfd53edd
15
.github/workflows/luacheck.yml
vendored
15
.github/workflows/luacheck.yml
vendored
@ -1,18 +1,9 @@
|
|||||||
name: luacheck
|
name: luacheck
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
luacheck:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v4
|
||||||
- name: apt
|
- uses: lunarmodules/luacheck@master
|
||||||
run: sudo apt-get install -y luarocks
|
|
||||||
- name: luacheck install
|
|
||||||
run: luarocks install --local luacheck
|
|
||||||
- name: luacheck run
|
|
||||||
run: $HOME/.luarocks/bin/luacheck ./
|
|
13
.luacheckrc
13
.luacheckrc
@ -1,18 +1,9 @@
|
|||||||
|
std = "minetest+min"
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"pick_and_place"
|
"pick_and_place"
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
-- Stdlib
|
|
||||||
string = {fields = {"split", "trim"}},
|
|
||||||
table = {fields = {"copy", "getn"}},
|
|
||||||
|
|
||||||
-- Minetest
|
|
||||||
"vector", "ItemStack",
|
|
||||||
"dump", "dump2",
|
|
||||||
"VoxelArea",
|
|
||||||
"minetest",
|
|
||||||
|
|
||||||
-- mods
|
|
||||||
"mapsync", "mtt", "blockexchange", "travelnet", "display_api"
|
"mapsync", "mtt", "blockexchange", "travelnet", "display_api"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user