ci / luacheck update

This commit is contained in:
BuckarooBanzay 2024-06-09 09:57:49 +02:00
parent 4c762d4f32
commit 46dfd53edd
2 changed files with 5 additions and 23 deletions

View File

@ -1,18 +1,9 @@
name: luacheck
on: [push, pull_request]
jobs:
build:
luacheck:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2.3.4
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./
- uses: actions/checkout@v4
- uses: lunarmodules/luacheck@master

View File

@ -1,18 +1,9 @@
std = "minetest+min"
globals = {
"pick_and_place"
}
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"
}