1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-04 09:00:36 +02:00

Add Factorio Luacheck

This commit is contained in:
Panquesito7
2020-02-06 19:41:16 -06:00
parent da51c688d2
commit 7b90d4763d
2 changed files with 39 additions and 0 deletions

11
.github/workflows/check-release.yml vendored Normal file
View File

@ -0,0 +1,11 @@
on: [push, pull_request]
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/Uberi/Minetest-WorldEdit/master/.luacheckrc

28
.luacheckrc Normal file
View File

@ -0,0 +1,28 @@
unused_args = false
allow_defined_top = true
max_line_length = 999
ignore = {
"pos1", "pos2",
"extent1", "extent2",
"header", "count",
"err", "state",
"filename", "def",
"file", "name",
}
globals = {
"minetest"
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
"vector", "unified_inventory",
"smart_inventory", "sfinv",
"VoxelArea", "inventory_plus",
"ItemStack",
}