Add Travis CI and LuaCheck (#3)

This commit is contained in:
David Leal 2020-05-12 19:34:14 -05:00 committed by GitHub
parent f3e24df3c1
commit 7db06eace7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

21
.luacheckrc Normal file
View File

@ -0,0 +1,21 @@
unused_args = false
max_defined_top = true
max_line_length = 999
globals = {
"minetest", "debug",
"io", "coroutine",
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
}
files["init.lua"].ignore = { "rawlen", "string", "ie" }
files["StackTracePlus/src/StackTracePlus.lua"].ignore = { "" }
files["StackTracePlus/test/test.lua"].ignore = { "" }
files["StackTracePlus/test/test_questionmark.lua"].ignore = { "" }
files["StackTracePlus/unittest/test.lua"].ignore = { "" }
files["StackTracePlus/src/StackTracePlus.lua"].ignore = { "" }
-- ^ Ignore everything

11
.travis.yml Normal file
View File

@ -0,0 +1,11 @@
language: generic
addons:
apt:
packages:
- luarocks
before_install:
- luarocks install --local luacheck
script:
- $HOME/.luarocks/bin/luacheck .
notifications:
email: false

View File

@ -1,4 +1,5 @@
# StackTracePlus # StackTracePlus
[![Build Status](https://travis-ci.org/MinetestForFun/stacktraceplus.svg)](https://travis-ci.org/MinetestForFun/stacktraceplus)
StackTracePlus is a Lua module that extends `debug.traceback` to include more StackTracePlus is a Lua module that extends `debug.traceback` to include more
call frame information such as local and globals, locals and parameters call frame information such as local and globals, locals and parameters