Add automatic linting for Go, Python, C, D, Java, Javascript, Lua

This commit is contained in:
Zachary Yedidia
2016-04-30 18:25:45 -04:00
parent 1668e91310
commit 3cbb23bfbe
2 changed files with 30 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"io/ioutil"
"os"
"runtime"
"github.com/go-errors/errors"
"github.com/layeh/gopher-luar"
@@ -215,6 +216,7 @@ func main() {
messenger = new(Messenger)
view := NewView(buf)
L.SetGlobal("OS", luar.New(L, runtime.GOOS))
L.SetGlobal("view", luar.New(L, view))
L.SetGlobal("settings", luar.New(L, &settings))
L.SetGlobal("messenger", luar.New(L, messenger))