Add LuaCheck and GitHub workflow

This commit is contained in:
Panquesito7 2020-06-21 13:20:49 -05:00
parent 034bf9bf8b
commit 32b864549f
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68
2 changed files with 25 additions and 0 deletions

11
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,11 @@
on: [push, pull_request]
name: build
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: ""

14
.luacheckrc Normal file
View File

@ -0,0 +1,14 @@
unused_args = false
allow_defined_top = true
max_line_length = 999
globals = {
"minetest",
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
"abs",
}