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 5381007 commit c774f55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: luacheck

on: [push, pull_request]

jobs:
luacheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- 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: S-S-X/minecheck@master
12 changes: 3 additions & 9 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

std = "minetest+max"

-- Exclude regression tests / unit tests
exclude_files = {
"**/spec/**",
Expand All @@ -8,15 +11,6 @@ globals = {
}

read_globals = {
-- Stdlib
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},

-- Minetest
"minetest",
"vector", "ItemStack",
"dump", "dump2",

-- Deps
"xban", "QoS"
}

0 comments on commit c774f55

Please sign in to comment.