Add Travis CI and LuaCheck (#3)

このコミットが含まれているのは:
David Leal 2020-05-12 19:34:14 -05:00 committed by GitHub
コミット 7db06eace7
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
3個のファイルの変更33行の追加0行の削除

21
.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

11
.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

ファイルの表示

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