mirror of
https://github.com/MinetestForFun/stacktraceplus.git
synced 2025-01-06 23:10:17 +01:00
Add Travis CI and LuaCheck (#3)
This commit is contained in:
parent
f3e24df3c1
commit
7db06eace7
21
.luacheckrc
Normal file
21
.luacheckrc
Normal 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
11
.travis.yml
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user