add luacheck

master
OgelGames 2021-07-31 20:56:01 +10:00
parent d8cb058191
commit 764e7b0daa
3 changed files with 28 additions and 2 deletions

13
.github/workflows/luacheck.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: luacheck
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- 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 ./

10
.luacheckrc Normal file
View File

@ -0,0 +1,10 @@
unused_args = false
globals = {
"minetest",
"illumination",
}
read_globals = {
"vector",
}

View File

@ -1,2 +1,5 @@
# illumination
Forked from https://notabug.org/Piezo_/minetest-illumination
# Illumination [illumination]
[![luacheck](https://github.com/pandorabox-io/illumination/workflows/luacheck/badge.svg)](https://github.com/pandorabox-io/illumination/actions)
Improved fork of https://notabug.org/Piezo_/minetest-illumination