From 6ef7e82af95534704a9382408777be40a2477d9e Mon Sep 17 00:00:00 2001 From: SX <50966843+S-S-X@users.noreply.github.com> Date: Thu, 15 Feb 2024 18:20:17 +0200 Subject: [PATCH] Use BuckarooBanzay's luacheck dev branch --- .github/workflows/luacheck.yml | 4 ++-- .luacheckrc | 12 ++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index 3c99a991..ef98f2e8 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -5,6 +5,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@main - name: Luacheck - uses: lunarmodules/luacheck@master + uses: S-S-X/minecheck@master \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc index 49fd267d..9f9980ec 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,3 +1,4 @@ +std = "minetest+max" unused_args = false -- Exclude regression tests / unit tests @@ -6,19 +7,10 @@ exclude_files = { } globals = { - "technic", "technic_cnc", "minetest" + "technic", "technic_cnc" } read_globals = { - -- Lua - string = {fields = {"split", "trim"}}, - table = {fields = {"copy", "getn"}}, - - -- Minetest - "PseudoRandom", "ItemStack", - "VoxelArea", "VoxelManip", - "Settings", "vector", - -- Mods "default", "stairsplus", "screwdriver", "bucket",