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
|
||||
|
||||
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
|
13
.luacheckrc
13
.luacheckrc
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user