Add LuaCheck and fix warnings
This commit is contained in:
parent
be4df6fc88
commit
bee20f6b52
|
@ -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: ""
|
|
@ -0,0 +1,13 @@
|
|||
unused_args = false
|
||||
max_line_length = false
|
||||
|
||||
globals = {
|
||||
"coloredwood"
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
table = {fields = {"copy", "getn", "contains"}},
|
||||
|
||||
"minetest", "default",
|
||||
"unifieddyes", "stairsplus",
|
||||
}
|
Loading…
Reference in New Issue