diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..b0f8a80 --- /dev/null +++ b/.luacheckrc @@ -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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4c59300 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: generic +addons: + apt: + packages: + - luarocks +before_install: + - luarocks install --local luacheck +script: +- $HOME/.luarocks/bin/luacheck . +notifications: + email: false diff --git a/README.md b/README.md index 264d399..1347f96 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # 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 call frame information such as local and globals, locals and parameters