mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 08:00:18 +01:00
upgrade luacheck workflow and define std
This commit is contained in:
parent
e519d3c6e0
commit
1159a02f76
17
.github/workflows/luacheck.yml
vendored
17
.github/workflows/luacheck.yml
vendored
@ -1,17 +1,10 @@
|
|||||||
name: luacheck
|
name: luacheck
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
luacheck:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout
|
||||||
- name: apt
|
uses: actions/checkout@main
|
||||||
run: sudo apt-get install -y luarocks
|
- name: Luacheck
|
||||||
- name: luacheck install
|
uses: lunarmodules/luacheck@master
|
||||||
run: luarocks install --local luacheck
|
|
||||||
- name: luacheck run
|
|
||||||
run: $HOME/.luarocks/bin/luacheck ./
|
|
10
.luacheckrc
10
.luacheckrc
@ -1,3 +1,5 @@
|
|||||||
|
std = "min+minetest"
|
||||||
|
|
||||||
unused_args = false
|
unused_args = false
|
||||||
max_line_length = 180
|
max_line_length = 180
|
||||||
|
|
||||||
@ -6,14 +8,6 @@ globals = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
-- Stdlib
|
|
||||||
string = {fields = {"split"}},
|
|
||||||
table = {fields = {"copy", "getn"}},
|
|
||||||
|
|
||||||
-- Minetest
|
|
||||||
"vector", "ItemStack",
|
|
||||||
"dump",
|
|
||||||
|
|
||||||
-- optional deps
|
-- optional deps
|
||||||
"advtrains",
|
"advtrains",
|
||||||
"default",
|
"default",
|
||||||
|
Loading…
Reference in New Issue
Block a user