Added linter
parent
a3966d1a02
commit
13f7c692cb
|
@ -0,0 +1,17 @@
|
|||
name: luacheck
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: apt
|
||||
run: sudo apt-get install -y luarocks
|
||||
- name: luacheck install
|
||||
run: luarocks install --local luacheck
|
||||
- name: luacheck run
|
||||
run: $HOME/.luarocks/bin/luacheck ./
|
|
@ -0,0 +1,24 @@
|
|||
unused_args = false
|
||||
|
||||
ignore = {
|
||||
"631",
|
||||
}
|
||||
|
||||
globals = {
|
||||
"elevator",
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
-- Stdlib
|
||||
string = {fields = {"split"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
-- Minetest
|
||||
"minetest",
|
||||
"vector",
|
||||
"VoxelManip",
|
||||
|
||||
-- deps
|
||||
"default", "screwdriver",
|
||||
"farming", "armor",
|
||||
}
|
Loading…
Reference in New Issue