Added luacheck config
This commit is contained in:
@@ -38,6 +38,25 @@ jobs:
|
|||||||
- name: Install luacheck
|
- name: Install luacheck
|
||||||
run: luarocks install luacheck
|
run: luarocks install luacheck
|
||||||
|
|
||||||
|
- name: Create LuaCheck Config
|
||||||
|
run: |
|
||||||
|
cat << EOF
|
||||||
|
std = {
|
||||||
|
globals = {
|
||||||
|
"SpearheadConfig"
|
||||||
|
},
|
||||||
|
read_globals = {
|
||||||
|
"lfs", "env", "net", "trigger", "timer", "Object"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
max_line_length = false
|
||||||
|
EOF
|
||||||
|
> .luacheckrc
|
||||||
|
|
||||||
|
- name: Show LuaCheck Config
|
||||||
|
run: cat .luacheckrc
|
||||||
|
|
||||||
- name: Lint Compiled Output
|
- name: Lint Compiled Output
|
||||||
run: luacheck ./output/spearhead.lua
|
run: luacheck ./output/spearhead.lua
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user