Browse Source

Add Travis CI and LuaCheck (#3)

master
David Leal GitHub 3 weeks ago
parent
commit
7db06eace7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions
  1. +21
    -0
      .luacheckrc
  2. +11
    -0
      .travis.yml
  3. +1
    -0
      README.md

+ 21
- 0
.luacheckrc 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
- 0
.travis.yml 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

+ 1
- 0
README.md View File

@@ -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


Loading…
Cancel
Save