Add LuaCheck (#17)

This commit is contained in:
David Leal 2023-07-28 13:05:38 -06:00 committed by GitHub
parent 72dc10d6b1
commit 287d7798e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 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@v3
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: ""

15
.luacheckrc Normal file
View File

@ -0,0 +1,15 @@
allow_defined_top = true
unused_args = false
max_line_length = false
read_globals = {
"mcl_sounds",
"ItemStack",
"vector",
"default",
"mcl_core"
}
globals = {
"minetest"
}