diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index f24a4b0..954faf7 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -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 \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc index 950cc2c..06771d7 100644 --- a/.luacheckrc +++ b/.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" }