mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-15 14:20:32 +02:00
add luacheck workflow
This commit is contained in:
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 ./
|
19
.luacheckrc
19
.luacheckrc
@ -1,14 +1,17 @@
|
|||||||
unused_args = false
|
unused_args = false
|
||||||
allow_defined_top = true
|
allow_defined_top = true
|
||||||
|
max_line_length = 185
|
||||||
|
|
||||||
read_globals = {
|
globals = {
|
||||||
"biome_lib",
|
"biome_lib",
|
||||||
"DIR_DELIM",
|
|
||||||
"minetest", "core",
|
|
||||||
"dump",
|
|
||||||
"vector", "nodeupdate",
|
|
||||||
"VoxelManip", "VoxelArea",
|
|
||||||
"PseudoRandom", "ItemStack",
|
|
||||||
"default",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
table = {fields = {"copy"}},
|
||||||
|
|
||||||
|
"minetest", "ItemStack",
|
||||||
|
"vector",
|
||||||
|
|
||||||
|
"default",
|
||||||
|
"moretrees",
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user