Add luacheck

This commit is contained in:
MoNTE48 2021-11-26 00:09:56 +01:00
parent b8721f7bd6
commit 1d91873150
2 changed files with 29 additions and 0 deletions

11
.github/workflows/luacheck.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: ""

18
.luacheckrc Normal file
View File

@ -0,0 +1,18 @@
max_line_length = 100
read_globals = {
"DIR_DELIM",
"dump",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
"AreaStore",
"default",
"intllib",
}
globals = {
"minetest",
"exchange_shop",
}
ignore = {"212/self"}