mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2024-12-30 17:17:29 +01:00
Add LuaCheck and GitHub workflow (#32)
This commit is contained in:
parent
f566d0ff26
commit
92a1e0cddb
11
.github/workflows/build.yml
vendored
Normal file
11
.github/workflows/build.yml
vendored
Normal 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: ""
|
19
.luacheckrc
Normal file
19
.luacheckrc
Normal file
@ -0,0 +1,19 @@
|
||||
allow_defined_top = true
|
||||
unused_args = false
|
||||
max_line_length = false
|
||||
|
||||
read_globals = {
|
||||
string = {fields = {"split", "trim"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
"player_monoids",
|
||||
"playerphysics",
|
||||
"hb",
|
||||
"vector",
|
||||
"hunger_ng",
|
||||
}
|
||||
|
||||
globals = {
|
||||
"minetest",
|
||||
"hbhunger"
|
||||
}
|
Loading…
Reference in New Issue
Block a user