mirror of
https://github.com/mt-mods/signs_lib.git
synced 2024-09-28 23:10:21 +02:00
add luacheck
This commit is contained in:
parent
30d0af57be
commit
58587b025f
13
.github/workflows/luacheck.yml
vendored
Normal file
13
.github/workflows/luacheck.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
name: luacheck
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
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 ./
|
16
.luacheckrc
Normal file
16
.luacheckrc
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
unused_args = false
|
||||||
|
|
||||||
|
globals = {
|
||||||
|
"minetest",
|
||||||
|
"signs_lib",
|
||||||
|
}
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
-- Builtin
|
||||||
|
table = {fields = {"copy"}},
|
||||||
|
"ItemStack", "vector",
|
||||||
|
|
||||||
|
-- Mod deps
|
||||||
|
"intllib",
|
||||||
|
"screwdriver",
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user