From 7e005783cfce78521c8ee5194d4611c1ec23e06f Mon Sep 17 00:00:00 2001 From: Omikhleia Date: Fri, 8 Dec 2023 02:35:40 +0100 Subject: [PATCH] chore: Update Luacheck CI action and check for minimum Luua version See related commits in https://github.com/Omikhleia/markdown.sile/pull/101 Co-authored-by: Caleb Maclennan --- .github/workflows/luacheck.yml | 4 ++-- .luacheckrc | 11 +---------- 2 files changed, 3 insertions(+), 12 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..f45e094 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,4 +1,4 @@ -std = "max" +std = "min+sile" include_files = { "**/*.lua", "sile.in", @@ -19,15 +19,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