From ca246bc5fa8ec8e8748cb316f9ba63e309c6fef8 Mon Sep 17 00:00:00 2001 From: Omikhleia Date: Fri, 8 Dec 2023 15:22:27 +0100 Subject: [PATCH] chore: Update Luacheck CI action and check for minimum Lua version --- .github/workflows/luacheck.yml | 4 ++-- .luacheckrc | 15 +-------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index e4576b7..9cb784c 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -8,6 +8,6 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Luacheck - uses: lunarmodules/luacheck@v0 + uses: lunarmodules/luacheck@v1 diff --git a/.luacheckrc b/.luacheckrc index a5d3578..37a86fe 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,15 +1,11 @@ -std = "max" +std = "min+sile" include_files = { "**/*.lua", - "sile.in", "*.rockspec", ".busted", ".luacheckrc" } exclude_files = { - "benchmark-*", - "compare-*", - "sile-*", "lua_modules", "lua-libraries", ".lua", @@ -19,15 +15,6 @@ exclude_files = { files["**/*_spec.lua"] = { std = "+busted" } -globals = { - "SILE", - "SU", - "luautf8", - "pl", - "fluent", - "SYSTEM_SILE_PATH", - "SHARED_LIB_EXT" -} max_line_length = false ignore = { "581" -- operator order warning doesn't account for custom table metamethods