From 1159a02f76e647bc33f72b3dc63266c1d15b9145 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sun, 15 Sep 2024 19:44:17 +0200 Subject: [PATCH] upgrade luacheck workflow and define std --- .github/workflows/luacheck.yml | 17 +++++------------ .luacheckrc | 10 ++-------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index d00f53a..e930ebe 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -1,17 +1,10 @@ name: luacheck - on: [push, pull_request] - jobs: - build: - + luacheck: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - 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 ./ + - name: Checkout + uses: actions/checkout@main + - name: Luacheck + uses: lunarmodules/luacheck@master \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc index 08b730a..2dd9700 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,3 +1,5 @@ +std = "min+minetest" + unused_args = false max_line_length = 180 @@ -6,14 +8,6 @@ globals = { } read_globals = { - -- Stdlib - string = {fields = {"split"}}, - table = {fields = {"copy", "getn"}}, - - -- Minetest - "vector", "ItemStack", - "dump", - -- optional deps "advtrains", "default",