Add Travis CI and LuaCheck (#3)

Bu işleme şunda yer alıyor:
David Leal 2020-05-12 19:34:14 -05:00 işlemeyi yapan: GitHub
ebeveyn f3e24df3c1
işleme 7db06eace7
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
3 değiştirilmiş dosya ile 33 ekleme ve 0 silme

21
.luacheckrc Normal dosya
Dosyayı Görüntüle

@ -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 dosya
Dosyayı Görüntüle

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

Dosyayı Görüntüle

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