Add LuaCheck and GitHub workflow (#5)
Some checks failed
build / lint (push) Has been cancelled

This commit is contained in:
David Leal 2023-01-10 09:23:45 -06:00 committed by GitHub
parent 7e7ebc595b
commit 08140d10bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 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@main
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: ""

12
.luacheckrc Normal file
View File

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