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:
11
.github/workflows/check-release.yml
vendored
Normal file
11
.github/workflows/check-release.yml
vendored
Normal 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
28
.luacheckrc
Normal 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",
|
||||
}
|
Reference in New Issue
Block a user