Skip to content

Commit

Permalink
Use BuckarooBanzay's luacheck dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
S-S-X authored Feb 15, 2024
1 parent 10799db commit 8a570ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: luacheck
name: minecheck
on: [push, pull_request]

jobs:
luacheck:
minecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Luacheck
uses: lunarmodules/luacheck@master
with:
args: mods
- uses: actions/checkout@main
- name: Luacheck
uses: S-S-X/minecheck@master
with:
args: mods
17 changes: 1 addition & 16 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
std = "minetest+max"
unused_args = false
allow_defined_top = true

globals = {
"default"
}

read_globals = {
"DIR_DELIM",
"minetest",
"dump",
"vector",
"VoxelManip", "VoxelArea",
"PseudoRandom", "PcgRandom",
"ItemStack",
"Settings",
"unpack",
-- Silence errors about custom table methods.
table = { fields = { "copy", "indexof" } },
-- Silence warnings about accessing undefined fields of global 'math'
math = { fields = { "sign" } }
}

-- Overwrites minetest.handle_node_drops
files["mods/creative/init.lua"].globals = { "minetest" }

Expand Down

0 comments on commit 8a570ac

Please sign in to comment.