From 31567c9e1500c2a67a7b83fd709ee80bd763e219 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Thu, 5 May 2016 11:31:53 -0400 Subject: [PATCH] Add linter option --- cmd/micro/micro.go | 1 - cmd/micro/runtime.go | 58 +++++++++++++++++++++++++++++-- cmd/micro/view.go | 7 ++++ runtime/plugins/go/go.lua | 3 -- runtime/plugins/linter/linter.lua | 50 +++++++++++++++----------- 5 files changed, 91 insertions(+), 28 deletions(-) diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index c0e9da5b..718d220d 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -218,7 +218,6 @@ func main() { 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)) L.SetGlobal("GetOption", luar.New(L, GetOption)) L.SetGlobal("AddOption", luar.New(L, AddOption)) diff --git a/cmd/micro/runtime.go b/cmd/micro/runtime.go index bb2cc188..2c2f9a80 100644 --- a/cmd/micro/runtime.go +++ b/cmd/micro/runtime.go @@ -5,6 +5,8 @@ // runtime/colorschemes/solarized-tc.micro // runtime/colorschemes/solarized.micro // runtime/help/help.md +// runtime/plugins/go/go.lua +// runtime/plugins/linter/linter.lua // runtime/syntax/Dockerfile.micro // runtime/syntax/LICENSE // runtime/syntax/README.md @@ -237,7 +239,7 @@ func runtimeColorschemesSolarizedMicro() (*asset, error) { return a, nil } -var _runtimeHelpHelpMd = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x58\x59\x73\xdb\x38\x12\x7e\x0e\x7f\x05\x4a\x99\xaa\x49\x66\x15\xb9\x76\x6b\x9f\xf4\xe6\x71\x9c\xa3\x26\x89\xbd\x8e\xbd\x3b\x99\x97\x10\x22\x41\x09\x63\x92\x60\x00\xd0\xb6\xb2\xc7\x6f\xdf\xaf\x1b\x00\x0f\xc9\xde\xc3\x2f\x16\xbb\x1b\x7d\x5f\xc0\x73\xf1\x51\x17\xd6\x88\x9d\xaa\x3b\xe1\xd5\x83\xcf\xb2\x00\xd0\x4e\x48\x00\x6c\xa3\x5b\x59\xbf\xda\x48\xa7\x4a\xc6\x0b\x55\x6a\x6f\xac\xf0\x3b\xe9\x85\xd4\x8d\x13\xde\x88\x8d\x12\x4a\xba\x3d\xfd\xec\x9d\x12\xb2\x2d\x85\x6e\x7d\xaf\xbd\xbe\x53\x4b\x91\xdd\xef\x74\x0d\x68\xed\x8c\xf0\xf2\x56\xb7\x5b\x21\xcb\x3b\xd9\x7a\xb9\x55\xc2\x54\x60\xa5\x44\xd5\xd7\xb5\x28\x64\x27\x37\xba\xc6\x31\xe5\x08\xd1\x98\x52\xd9\x76\xd0\xc2\xad\xb2\xec\xf9\xf3\xe7\xe2\xc6\xe1\x60\x96\x5d\xb4\x85\x12\x7b\xd3\x8b\x9d\xbc\x53\x62\xd3\xeb\xda\x33\xab\xa0\xe0\x52\x38\xdd\x74\xf5\x5e\x38\x2f\xad\x17\xda\x8b\xcd\x5e\xd8\xbe\x6d\x49\x7c\x96\x37\x6c\x64\x27\xfd\xee\xc4\x9b\x93\x0a\xfa\xad\xfc\x83\xcf\x05\x2c\x8b\xe7\x02\x49\x4e\x36\x99\x4e\xb5\x30\x4a\xa8\xa6\xf3\x7b\x48\xaa\x2a\x65\x57\xc9\x51\x6c\x96\xeb\xbb\xce\x58\xef\x44\x61\x95\xf4\x24\x22\x50\x39\x51\x59\xd3\x40\x87\x52\xb7\xeb\x2c\xcb\xf3\x3c\xfb\x41\xe8\xaa\x30\x6d\xa5\xb7\xe2\x1f\x82\x65\x30\x38\xfb\x02\x4b\x0a\x08\x69\x0c\xac\x21\x3b\x8a\xde\x3a\xa8\x23\xad\xe9\xe1\xcf\x7b\xed\x77\x0c\x96\xd6\x9a\x7b\x71\xab\xf6\x8e\xfd\xdc\x18\x78\x3c\x3a\xe6\x17\xb5\xdf\xe8\x16\xa2\xb6\x2e\xcb\xae\x77\x8a\x42\x61\x03\xb3\x52\x55\xb2\x87\x83\x6e\x47\x92\x25\x54\x37\xd0\x34\x71\xd6\x90\x55\x78\x6d\x5a\xf2\x33\xf1\x7b\x2e\xce\x43\xac\x47\xa6\x3f\x89\x33\x6f\xeb\x57\xdf\xd6\x42\x88\xbf\x20\xbe\x09\xa0\x08\x70\xfe\xa0\x8a\xde\x43\xa6\x28\x4c\xd3\x40\xb9\x84\xdd\x12\xf6\xda\x6c\xb7\xc8\x82\x31\xd1\x22\x72\x43\xc8\xab\x1e\x0e\x16\x0e\xc8\x7a\x38\x1c\x54\xf8\x99\xfd\x78\xac\x82\xa3\x63\x9f\x11\xf9\x04\x30\x04\xb8\xa0\x48\x51\x34\x13\xf4\x3b\x41\x6f\xda\xd2\x24\xc0\x9e\xc5\xa9\x11\x50\x11\xe0\x8d\x1e\xb5\x6d\x13\x40\xb4\x13\x35\xbb\x01\xda\x59\x75\xa7\xe1\xf5\x84\x91\xac\x89\xaa\x55\x81\x82\xa8\xeb\x04\x2e\x08\x7c\x66\xba\x7d\x02\x3c\x30\xa0\x1f\x38\xde\xc6\x6f\x51\xeb\x76\xd0\xf7\x8e\x80\x97\xd2\xf9\x01\xd2\x13\xe4\x9d\xac\x2b\x64\x2b\xea\xa5\xef\x12\xa2\x9c\x23\x4a\x73\xdf\x02\x75\x89\xdf\x37\x5d\xe0\x92\xc8\xe9\xd7\x6b\xa0\xd7\x01\x16\x29\xdf\x99\x86\xc3\x26\xc4\x5b\x13\x8a\x78\xab\x43\x79\xa0\xf4\xa2\x4e\xe7\x6d\x19\x48\x22\x8d\x82\xfd\x23\x96\xd5\xb0\x93\xe0\x12\x5c\xb4\x7d\xb3\x41\xe6\x8f\x19\x4d\x2d\x81\x33\x37\xe4\x9f\x13\x7f\x08\x49\xcc\xad\x83\xd3\xfd\xde\xd8\x92\xea\x93\xfe\xaf\x32\x62\x2b\x6a\x55\x79\x4e\x70\xab\xb7\x3b\x7f\x54\x15\x38\x49\x5f\xa1\xb8\x89\x2c\x6a\x46\x40\xd2\x62\x49\xc0\xac\x20\x4e\x7d\xc7\x04\x64\xf5\x31\x9b\xa7\x78\x0c\x45\x9e\x8c\xd8\x99\xba\x44\x82\x6a\x68\xc5\x05\x83\x48\x47\x5a\x58\x47\x6c\x1b\xd5\xfa\x54\x40\xa4\x9e\x0b\x19\x11\x7a\x1f\x08\xe0\xd8\x15\x57\x65\xe4\x3d\xa4\xb4\x68\xe4\x9e\x3a\xa8\x55\x1b\xae\xf4\xde\x51\x0c\x48\x89\xfc\x5f\x27\xab\xd0\x2a\x4e\xb8\x51\x9c\xa4\x23\xab\xdf\x9d\x69\x73\x91\x71\xdf\x12\xe7\xb2\xd8\x91\x63\xa9\x67\x07\x16\x10\x0f\x95\x83\x32\x10\xfa\x06\x96\xaa\x07\x89\xb6\x06\xbf\x50\xa4\x29\x8d\xf3\x50\x0e\xdc\xe0\x70\xc6\xb0\x07\x02\xf0\x3b\x03\x2d\x8a\x64\xc9\x0d\xb6\x30\x3d\x8c\xef\xfa\xd0\x5f\xb3\xca\xd4\xb5\xb9\x27\x25\x75\x1b\xf4\x3c\xd0\x8b\xd5\xe2\x6e\x47\xdf\xd9\xdf\x33\x4a\xa0\x05\xb1\xfe\xb2\x58\x8b\x05\x95\xe3\x62\x39\x02\x7f\x23\x20\x95\xe4\x22\xfb\x67\xe8\x85\xef\x94\x3d\x6a\x5d\x6e\x3d\xe5\xf8\xec\xd9\xe2\xa6\x5b\xc4\xdc\x8c\x7f\x8b\x33\x0e\x2a\x65\x3a\xd8\x83\x82\x7f\xad\x8f\x29\x70\x92\xf1\x57\x94\x5a\x53\x82\x88\x0f\x70\x26\xf9\x80\x34\x7c\x8c\x05\xc3\x99\xe2\x33\xe5\xc4\x54\x97\x45\xe8\x05\x49\x08\xe3\xa7\x9a\x44\xfc\xa8\x26\x53\x4c\x05\x45\x8a\x03\x19\x53\x6d\x23\xc5\x44\xd1\xd3\xda\xcf\x75\x5d\xfc\x0d\xc5\x34\xb2\x00\x7e\x6e\x2e\xe3\xe7\x0c\xe6\x62\xa2\x8c\x27\xc8\x06\x61\x13\xb2\x51\x1a\x85\x75\xa6\xce\xe2\x33\x55\xd9\x45\xf5\x01\xb5\x39\x92\xcc\x34\x5a\xa0\xd9\x1c\x12\xcc\x44\x45\x49\xd7\xe6\x51\x5e\x33\xe5\x07\xd2\x47\x78\xce\xf2\x26\x86\x93\x39\x8e\x24\xb3\xc4\x89\x24\xe0\x74\x20\x2c\x31\x9a\xeb\x75\x40\x94\x58\x4d\x35\x0a\x24\xe7\x2d\x16\x9b\x59\xf6\xbd\x6f\x9d\xb2\x3e\xc0\x43\xdc\x3b\x59\xa8\x47\x48\x02\x9c\x49\x7e\x96\xc5\xad\x9b\x92\x4d\x20\x73\x82\x3f\xa5\xdc\x39\x20\xb8\x96\x9b\x79\x21\x45\x21\x04\x1f\x6c\xb9\x98\x69\x41\x63\xf6\x0d\x8a\x7c\x62\xeb\x0c\x4f\x73\x79\xc4\xbd\x99\xe1\x68\x86\x8e\xb8\x4f\x47\xb8\x4f\x18\xba\x23\xfe\xf2\x08\x7f\x19\xc7\xef\x48\xf3\xdb\x8c\x26\x76\x97\x88\xfb\x32\xc3\x71\x93\x19\x70\x67\xf3\xd2\xc7\xa8\x1e\x71\xbf\x1e\xb4\x85\x89\x4a\xbf\x1c\xa2\xe6\xe9\xf5\xd7\x19\x9a\x47\xf9\x88\x3c\x9d\xbb\x89\x53\xe2\xb4\xae\x03\x01\x0d\xe4\x79\xaf\x99\x24\x14\xa5\xcd\x3c\x4a\x43\x22\x5d\x6e\x0f\x5a\xe1\x22\x2c\x01\x09\xfb\xba\x3d\xc6\x8e\xdd\x87\x4b\x62\xa6\x16\xed\x14\x53\x0e\x5c\x11\x8f\x52\xcc\xb9\x5c\xcd\x68\xc2\x4a\x70\xd5\xd7\x29\x99\x5f\xc3\x5a\x3f\x35\x30\x41\xd0\xf5\x43\xdb\xe7\x25\xf6\xd2\x38\xa7\x37\x98\x99\x71\x0f\x9c\x2c\x12\x2a\x2d\x98\x6d\xba\x85\x44\x1a\xda\x1d\xb0\x96\x39\x9e\x9c\x61\x86\x29\x8c\x21\x9e\x53\x8a\xb1\x3c\xf3\x03\xf1\x6a\x3e\x5e\xba\x43\x79\xe1\x6a\xb3\x1f\x97\x97\x15\x2d\x9d\xf9\x37\xac\xbb\xf9\x9a\xb7\x5e\x17\xf6\xf6\x15\x81\x1d\x52\x1d\x60\xca\x78\x97\x36\x0b\x4b\xab\xc0\xb0\x41\x80\xc8\xaa\xae\x46\xbd\x89\x85\x53\xd2\x16\xbb\x85\x58\xdc\xc9\xba\x57\x0b\x51\xd5\x72\xeb\x70\xfc\x7a\x87\xd9\x7d\xaf\xb1\x53\x24\xd2\x3c\x90\xe6\x61\xdb\xc8\x99\x3e\x5f\x09\x9a\x9a\xb4\x43\xe4\xe1\x24\x5b\x61\x3a\x9a\xf3\xb2\x5e\x11\xf2\x94\x86\x34\x98\x75\x06\x37\xb0\x25\x69\x04\x0a\x7c\x9b\x16\x77\x1a\x83\xf5\x8c\x0e\xae\x45\x5e\xe4\x4b\xda\x4d\xb0\x39\xa8\x56\xc2\x7c\x07\xd0\x4e\x15\xb7\x39\xdf\xba\x58\x4e\x40\x4b\x77\xeb\x70\x65\x21\x87\xfc\x58\x62\xb7\xba\x55\xb4\x1c\x74\xca\x56\xc6\x36\x6c\x71\x54\x99\x17\x20\x45\xbb\x88\xd7\x0d\xee\x67\xe0\xf0\xc9\x78\x15\xdc\x39\x98\xd3\xf4\xce\xd3\xb6\x23\x05\x4c\xd2\x58\xef\xd4\x56\x3d\xac\x84\x78\x5f\xb1\x76\x71\xfd\x92\x76\xdb\x13\x3f\x47\x5c\x4a\x03\xed\x5a\xe3\xc3\x45\x4f\xb6\xb8\xd3\x51\xf7\x72\xb4\x7e\x68\x1f\x56\x14\xda\xa1\x4c\xa3\xc3\x86\xf2\xad\x87\x5c\x17\x5c\xef\x94\x8f\x0e\x12\xc1\x87\x6b\x6c\x66\x3e\x84\x2a\xc2\x61\x0e\xa3\x56\xe2\xb2\xc6\x35\x16\x1b\xa1\x0a\xa9\x41\xfb\x3f\x3e\x78\x8d\x42\x36\x59\x52\x46\xc2\x05\xb0\x00\x7a\x86\xd3\x6e\xc8\x14\xb0\x8d\xd1\xc6\x65\xc6\xed\x5e\xc5\x7c\x82\x40\x00\x82\xc0\x2d\xee\xc3\xed\xfc\x9a\x93\x76\xa8\x0d\x9a\xf2\x96\xaf\x7a\x2b\x0e\x30\xc9\x8a\x24\x3f\x22\x7a\xbd\xa7\xf5\x8b\x33\x04\xce\x2b\xb5\x83\xcb\xf7\x8a\x4f\x93\xdb\x78\xf1\xbe\xdf\x29\x72\x08\xd6\xaf\x56\x43\x86\x4b\xd7\xdd\x78\x3b\xbc\x08\xfa\xa6\x7b\xab\x43\xfd\x80\x66\xdc\x63\x29\xd5\xa9\xa2\x68\xdf\xec\xad\x64\xa3\xd9\xc3\xee\x00\x58\x6a\x0b\x9f\x18\xbb\x1f\xee\xc0\x38\x19\x0c\xcc\x7f\xf8\xf5\xf5\xdb\xaf\x67\x17\x9f\xde\xbc\x7f\xfb\xf5\xdd\xc5\xc7\xf3\x93\x78\x8b\x96\xb1\x38\x9e\x60\x24\x4e\x1d\xa5\x54\x46\x34\xe0\x80\x00\xab\x62\x49\x59\x77\xc4\x30\xa7\x64\xa6\x64\x80\xbb\x97\x47\x1b\x32\x63\x7b\x7a\xab\x80\xc0\x6c\x94\x38\xd3\x79\x56\xfe\x29\x8a\xb3\xa2\x07\xef\x35\x87\xb2\x30\xb5\xb1\x0e\x85\xd1\x50\xe2\xd4\x46\x96\xc9\x8e\x01\x1e\x1c\xc9\x91\xa0\x98\xfd\xf0\x22\x48\x7c\xad\xed\xcb\x93\x09\x99\x3b\xc9\x83\xa8\x7c\x15\x2e\xfd\xd9\xb3\x74\x27\xe7\xe4\x43\x49\xc6\xef\x3c\x7b\x36\xd6\xcd\xf4\xee\x3e\xe5\x26\x5e\x44\xe8\x52\x38\x53\x4b\xab\xbf\xab\x92\xef\x3c\xe3\xe7\x2b\x5f\xbc\xe4\x25\x9b\x4c\x25\x8f\xd5\xa6\x90\x3e\x68\x3a\xe8\xb8\x44\x3a\x15\x32\xde\xd0\xf6\x4c\xaa\x70\x7d\x2b\x4b\x35\x64\x66\x78\x2a\xc1\x8a\x2f\xed\x9e\xab\x9a\xf3\x73\xea\x01\x72\xd9\x46\xc5\x1b\x0f\x0e\xf2\x9b\x07\x25\x16\xbf\xec\xe8\x3a\x94\xaa\x8f\x59\x2d\x0e\x6f\x35\x33\x2f\x4d\x93\x22\x24\x17\xaa\x00\x0c\xd0\xc3\x93\x1f\xe2\x83\x85\x55\x8a\xd9\x4d\x8f\xaf\x83\x82\x3f\x25\xda\x75\x68\x86\xda\x3d\xe5\xc8\x55\xa4\x1f\xbc\x36\x3f\x31\x80\x67\xf6\xbe\xe0\x0c\x8b\x26\xb9\x02\x8a\xb4\x6e\x67\xfc\xcb\xd0\x9e\xf1\x47\x03\x0b\x10\xba\x35\x71\xcf\x7a\x84\x15\x2e\xed\x18\x7e\x08\x33\xd8\x20\xed\xec\xf0\xca\x95\x1e\xd1\xb4\x3f\xd2\x0d\x11\xfd\x5f\xd4\xab\xe8\x62\x6b\xfb\x18\xa3\xa5\xf8\x9d\x5a\x6e\xd4\xac\x91\xe8\xdf\xae\xb7\xea\x40\xe8\xf0\x80\x35\x1e\x44\x48\xc1\x49\xc5\xfb\xa8\x0e\x57\xe4\x21\x29\x23\xbf\x8f\xef\xcf\xae\x2e\xbe\x5e\x5f\xdd\x9c\x9f\x5d\x7c\xb8\xb8\xc2\x30\xb9\xd3\xd6\xb4\x3c\x0b\xee\xa0\x1b\x8d\x16\xd2\x96\xda\x30\x0c\xfb\x63\x62\xca\x97\x6e\xe2\x1b\x27\x29\x57\x9b\x97\x1b\x07\x6b\xa6\x2d\x1a\x20\x41\x30\x3a\x9c\x0a\xe8\x91\xd2\xf9\x73\x1e\x9a\xfd\xbe\xf5\xf2\x01\xe7\x7d\x6f\x51\xd3\xe1\x13\x0d\x92\x9e\xf5\x4c\x55\x3d\x72\x90\xd9\x45\xd1\x58\xe0\x79\xae\xe0\x3c\x05\x60\x18\x32\xd8\xe0\x64\x78\x18\x00\xd1\x63\x3c\xaa\x2a\x30\x91\xbd\xc7\xd4\x2d\x61\x3b\x58\x70\x37\x1e\x9e\x03\x25\x86\xc9\x7d\x68\xd3\xe9\x39\xc4\xc9\x86\xa2\x4f\xe4\xa1\x1d\xc6\x1e\x49\x9e\x4d\x6f\x4c\xe1\xa5\x85\x7d\xfd\x94\xe6\x96\x36\x2c\xc8\x8b\x33\xe1\xe0\x0d\xe6\x3f\x9d\xdc\x9a\xaa\x21\x4d\xe9\xf1\x2d\x7e\xb0\xd6\xea\x4e\xd9\xa1\x74\x39\x78\xc8\xe1\x52\xbc\xe0\xcc\xe3\x3d\x42\x76\x5d\x4d\x6f\xb4\x14\x94\xd5\x16\x5d\x97\xe4\x70\xa1\xbf\x7c\x42\x64\x72\xd1\xd6\xe8\x86\x13\x2d\x8c\xc5\x29\xe0\xff\x94\x4d\x72\x06\xf9\xff\x5d\xf6\x29\xd6\x86\x38\xef\xa9\xcb\x53\x3e\xc6\x02\x8e\xab\x64\x9a\xad\x41\x60\x7c\x5f\x62\x2d\xb2\xc3\x86\x85\xc3\x7e\x78\xee\x40\x11\x2e\x89\x95\xc2\xba\x57\x84\x6d\xe4\x70\x8a\x32\x97\xc4\x3f\xe3\x9c\xa0\x2e\x09\xa1\x20\x5e\xd1\xea\x33\x5f\xae\x3c\x15\xe9\x23\x7c\xb8\xf1\x91\xf6\xfc\xbe\x63\x68\xb7\xcb\x1a\x2c\x5c\xfc\xde\x15\x9f\xad\x0b\x5c\x63\x42\x7a\xcd\x94\x8c\xf6\xf0\x19\x11\xcf\xa0\xea\xde\xb7\xf1\xf5\x1d\x05\xa3\x96\x61\x84\xc7\x4c\xe0\xe7\xa0\x69\x74\xa2\xfe\x16\xee\x2d\xc2\xc8\x0b\x9d\x41\x8a\xae\xee\xb7\x34\xfe\xdc\x1e\xa5\xd2\xac\xc4\x3b\x6c\xdd\x88\xe3\x32\xed\xc2\xf5\x3e\x4c\x17\x6e\x3e\x9a\x96\x44\xa7\x15\xbf\xe1\x75\xd6\x6c\xad\x6c\xe2\x8c\x01\x8f\xd8\x0e\xfe\x1d\x00\x00\xff\xff\xdd\xaf\xa3\xc8\x97\x18\x00\x00") +var _runtimeHelpHelpMd = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x58\x4b\x73\xdb\x38\x12\x3e\x87\xbf\x02\xa5\xa4\x6a\x92\x59\x45\xae\xdd\xda\x93\x6e\x1e\xc7\x79\xd4\x24\xb1\xd7\xb1\x77\x27\x73\x09\x21\x12\x94\x30\x26\x09\x06\x00\x6d\x2b\xfb\xf8\xed\xfb\x75\x03\xe0\x43\xb2\xab\xc6\x17\x8b\xdd\x8d\x7e\xa1\x9f\x78\x2e\x3e\xe9\xc2\x1a\xb1\x53\x75\x27\xbc\x7a\xf0\x59\x16\x00\xda\x09\x09\x80\x6d\x74\x2b\xeb\xd7\x1b\xe9\x54\xc9\x78\xa1\x4a\xed\x8d\x15\x7e\x27\xbd\x90\xba\x71\xc2\x1b\xb1\x51\x42\x49\xb7\xa7\x9f\xbd\x53\x42\xb6\xa5\xd0\xad\xef\xb5\xd7\x77\x6a\x29\xb2\xfb\x9d\xae\x01\xad\x9d\x11\x5e\xde\xea\x76\x2b\x64\x79\x27\x5b\x2f\xb7\x4a\x98\x0a\xac\x94\xa8\xfa\xba\x16\x85\xec\xe4\x46\xd7\x38\xa6\x1c\x21\x1a\x53\x2a\xdb\x0e\x5a\xb8\x55\x96\x3d\x7f\xfe\x5c\xdc\x38\x1c\xcc\xb2\x8b\xb6\x50\x62\x6f\x7a\xb1\x93\x77\x4a\x6c\x7a\x5d\x7b\x66\x15\x14\x5c\x0a\xa7\x9b\xae\xde\x0b\xe7\xa5\xf5\x42\x7b\xb1\xd9\x0b\xdb\xb7\x2d\x89\xcf\xf2\x86\x8d\xec\xa4\xdf\x9d\x78\x73\x52\x41\xbf\x95\x7f\xf0\xb9\x80\x65\xf1\x5c\x20\xc9\xc9\x26\xd3\xa9\x16\x46\x09\xd5\x74\x7e\x0f\x49\x55\xa5\xec\x2a\x39\x8a\xcd\x72\x7d\xd7\x19\xeb\x9d\x28\xac\x92\x9e\x44\x04\x2a\x27\x2a\x6b\x1a\xe8\x50\xea\x76\x9d\x65\x79\x9e\x67\x2f\x84\xae\x0a\xd3\x56\x7a\x2b\xfe\x23\x58\x06\x83\xb3\xaf\xb0\xa4\x80\x90\xc6\xc0\x1a\xb2\xa3\xe8\xad\x83\x3a\xd2\x9a\x1e\xfe\xbc\xd7\x7e\xc7\x60\x69\xad\xb9\x17\xb7\x6a\xef\xd8\xcf\x8d\x81\xc7\xa3\x63\x7e\x55\xfb\x8d\x6e\x21\x6a\xeb\xb2\xec\x7a\xa7\xe8\x2a\x6c\x60\x56\xaa\x4a\xf6\x70\xd0\xed\x48\xb2\x84\xea\x06\x9a\x26\xce\x1a\xb2\x0a\xaf\x4d\x4b\x7e\x26\x7e\xcf\xc5\x79\xb8\xeb\x91\xe9\xcf\xe2\xcc\xdb\xfa\xf5\xf7\xb5\x10\xe2\x1f\xb8\xdf\x04\x50\x04\x38\x7f\x50\x45\xef\x21\x53\x14\xa6\x69\xa0\x5c\xc2\x6e\x09\x7b\x6d\xb6\x5b\x44\xc1\x18\x68\x11\xb9\x21\xe4\x55\x0f\x07\x0b\x07\x64\x3d\x1c\x0e\x2a\xfc\xc2\x7e\x3c\x56\xc1\xd1\xb1\x2f\xb8\xf9\x04\x30\x04\xb8\xa0\x9b\xa2\xdb\x4c\xd0\x1f\x04\xbd\x69\x4b\x93\x00\x7b\x16\xa7\x46\x40\x45\x80\xb7\x7a\xd4\xb6\x4d\x00\xd1\x4e\xd4\xec\x06\x68\x67\xd5\x9d\x86\xd7\x13\x46\xb2\x26\xaa\x56\x05\x12\xa2\xae\x13\xb8\x20\xf0\x99\xe9\xf6\x09\xf0\xc0\x80\x7e\xe0\x78\x1b\xbf\x45\xad\xdb\x41\xdf\x3b\x02\x5e\x4a\xe7\x07\x48\x4f\x90\xf7\xb2\xae\x10\xad\xc8\x97\xbe\x4b\x88\x72\x8e\x28\xcd\x7d\x0b\xd4\x25\x7e\xdf\x74\x81\x4b\x22\xa7\x5f\x6f\x80\x5e\x07\x58\xa4\x7c\x6f\x1a\xbe\x36\x21\xde\x99\x90\xc4\x5b\x1d\xd2\x03\xa9\x17\x75\x3a\x6f\xcb\x40\x12\x69\x14\xec\x1f\xb1\xac\x86\x9d\x5c\x2e\xc1\x45\xdb\x37\x1b\x44\xfe\x18\xd1\x54\x12\x38\x72\x43\xfc\x39\xf1\x97\x10\xc4\x5c\x3a\x38\xdc\xef\x8d\x2d\x29\x3f\xe9\xff\x2a\x23\xb6\xa2\x56\x95\xe7\x00\xb7\x7a\xbb\xf3\x47\x59\x81\x93\xf4\x15\x92\x9b\xc8\xa2\x66\x04\x24\x2d\x96\x04\xcc\x0a\xe2\xd4\x77\x4c\x40\x56\x1f\xb3\x79\x8a\xc7\x90\xe4\xc9\x88\x9d\xa9\x4b\x04\xa8\x86\x56\x9c\x30\xb8\xe9\x48\x0b\xeb\x88\x6d\xa3\x5a\x9f\x12\x88\xd4\x73\x21\x22\x42\xed\x03\x01\x1c\xbb\xe2\xac\x8c\xbc\x87\x90\x16\x8d\xdc\x53\x05\xb5\x6a\xc3\x99\xde\x3b\xba\x03\x52\x22\xff\xdf\xc9\x2a\x94\x8a\x13\x2e\x14\x27\xe9\xc8\xea\x0f\x67\xda\x5c\x64\x5c\xb7\xc4\xb9\x2c\x76\xe4\x58\xaa\xd9\x81\x05\xc4\x43\xe5\xa0\x0c\x84\xbe\x85\xa5\xea\x41\xa2\xac\xc1\x2f\x74\xd3\x14\xc6\x79\x48\x07\x2e\x70\x38\x63\xd8\x03\x01\xf8\x83\x81\x16\x49\xb2\xe4\x02\x5b\x98\x1e\xc6\x77\x7d\xa8\xaf\x59\x65\xea\xda\xdc\x93\x92\xba\x0d\x7a\x1e\xe8\xc5\x6a\x71\xb5\xa3\xef\xec\xdf\x19\x05\xd0\x82\x58\x7f\x5d\xac\xc5\x82\xd2\x71\xb1\x1c\x81\xbf\x13\x90\x52\x72\x91\xfd\x37\xd4\xc2\xf7\xca\x1e\x95\x2e\xb7\x9e\x72\x7c\xf6\x6c\x71\xd3\x2d\x62\x6c\xc6\xbf\xc5\x19\x5f\x2a\x45\x3a\xd8\x83\x82\x7f\xad\x8f\x29\x70\x92\xf1\x57\x14\x5a\x53\x82\x88\x0f\x70\x26\xf9\x88\x30\x7c\x8c\x05\xc3\x99\xe2\x0b\xc5\xc4\x54\x97\x45\xa8\x05\x49\x08\xe3\xa7\x9a\x44\xfc\xa8\x26\x53\x4c\x05\x45\x8a\x03\x19\x53\x6d\x23\xc5\x44\xd1\xd3\xda\xcf\x75\x5d\xfc\x0b\xc9\x34\xb2\x00\x7e\x6e\x2e\xe3\xe7\x0c\xe6\x62\xa2\x8c\x27\xc8\x06\x61\x13\xb2\x51\x1a\x5d\xeb\x4c\x9d\xc5\x17\xca\xb2\x8b\xea\x23\x72\x73\x24\x99\x69\xb4\x40\xb1\x39\x24\x98\x89\x8a\x92\xae\xcd\xa3\xbc\x66\xca\x0f\xa4\x8f\xf0\x9c\xc5\x4d\xbc\x4e\xe6\x38\x92\xcc\x02\x27\x92\x80\xd3\x81\xb0\xc4\x68\xae\xd7\x01\x51\x62\x35\xd5\x28\x90\x9c\xb7\x18\x6c\x66\xd1\xf7\xa1\x75\xca\xfa\x00\x0f\xf7\xde\xc9\x42\x3d\x42\x12\xe0\x4c\xf2\x8b\x2c\x6e\xdd\x94\x6c\x02\x99\x13\xfc\x2d\xc5\xce\x01\xc1\xb5\xdc\xcc\x13\x29\x0a\x21\xf8\x60\xcb\xc5\x4c\x0b\x6a\xb3\x6f\x91\xe4\x13\x5b\x67\x78\xea\xcb\x23\xee\xed\x0c\x47\x3d\x74\xc4\x7d\x3e\xc2\x7d\x46\xd3\x1d\xf1\x97\x47\xf8\xcb\xd8\x7e\x47\x9a\xdf\x67\x34\xb1\xba\x44\xdc\xd7\x19\x8e\x8b\xcc\x80\x3b\x9b\xa7\x3e\x5a\xf5\x88\xfb\xed\xa0\x2c\x4c\x54\xfa\xf5\x10\x35\x0f\xaf\x7f\xce\xd0\xdc\xca\x47\xe4\xe9\xdc\x4d\x1c\x12\xa7\x75\x1d\x08\xa8\x21\xcf\x6b\xcd\x24\xa0\x28\x6c\xe6\xb7\x34\x04\xd2\xe5\xf6\xa0\x14\x2e\xc2\x10\x90\xb0\x6f\xda\x63\xec\x58\x7d\x38\x25\x66\x6a\xd1\x4c\x31\xe5\xc0\x19\xf1\x28\xc5\x9c\xcb\xd5\x8c\x26\x8c\x04\x57\x7d\x9d\x82\xf9\x0d\xac\xf5\x53\x03\x13\x04\x55\x3f\x94\x7d\x1e\x62\x2f\x8d\x73\x7a\x83\x9e\x19\xe7\xc0\xc9\x20\xa1\xd2\x80\xd9\xa6\x2d\x24\xd2\xd0\xec\x80\xb1\xcc\x71\xe7\x0c\x3d\x4c\xa1\x0d\x71\x9f\x52\x8c\xe5\x9e\x1f\x88\x57\xf3\xf6\xd2\x1d\xca\x0b\xab\xcd\x7e\x1c\x5e\x56\x34\x74\xe6\xdf\x31\xee\xe6\x6b\x9e\x7a\x5d\x98\xdb\x57\x04\x76\x08\x75\x80\x29\xe2\x5d\x9a\x2c\x2c\x8d\x02\xc3\x04\x01\x22\xab\xba\x1a\xf9\x26\x16\x4e\x49\x5b\xec\x16\x62\x71\x27\xeb\x5e\x2d\x44\x55\xcb\xad\xc3\xf1\xeb\x1d\x7a\xf7\xbd\xc6\x4c\x91\x48\xf3\x40\x9a\x87\x69\x23\x67\xfa\x7c\x25\xa8\x6b\xd2\x0c\x91\x87\x93\x6c\x85\xe9\xa8\xcf\xcb\x7a\x45\xc8\x53\x6a\xd2\x60\xd6\x19\x6c\x60\x4b\xd2\x08\x14\xf8\x36\x2d\x76\x1a\x83\xf1\x8c\x0e\xae\x45\x5e\xe4\x4b\x9a\x4d\x30\x39\xa8\x56\xc2\x7c\x07\xd0\x4e\x15\xb7\x39\x6f\x5d\x2c\x27\xa0\xa5\xbb\x75\x58\x59\xc8\x21\x3f\x95\x98\xad\x6e\x15\x0d\x07\x9d\xb2\x95\xb1\x0d\x5b\x1c\x55\xe6\x01\x48\xd1\x2c\xe2\x75\x83\xfd\x0c\x1c\x3e\x1b\xaf\x82\x3b\x07\x73\x9a\xde\x79\x9a\x76\xa4\x80\x49\x1a\xe3\x9d\xda\xaa\x87\x95\x10\x1f\x2a\xd6\x2e\x8e\x5f\xd2\x6e\x7b\xe2\xe7\x88\x4b\x69\xa0\x5d\x6b\x7c\x58\xf4\x64\x8b\x9d\x8e\xaa\x97\xa3\xf1\x43\xfb\x30\xa2\xd0\x0c\x65\x1a\x1d\x26\x94\xef\x3d\xe4\xba\xe0\x7a\xa7\x7c\x74\x90\x08\x3e\x5c\x63\x32\xf3\xe1\xaa\x22\x1c\xe6\x30\x6a\x25\x2e\x6b\xac\xb1\x98\x08\x55\x08\x0d\x9a\xff\xf1\xc1\x63\x14\xa2\xc9\x92\x32\x12\x2e\x80\x05\xd0\x33\x9c\x76\x43\xa4\x80\x6d\xbc\x6d\x2c\x33\x6e\xf7\x3a\xc6\x13\x04\x02\x10\x04\x6e\xb1\x0f\xb7\xf3\x35\x27\xcd\x50\x1b\x14\xe5\x2d\xaf\x7a\x2b\xbe\x60\x92\x15\x49\x7e\xc2\xed\xf5\x9e\xc6\x2f\x8e\x10\x38\xaf\xd4\x0e\x2e\xdf\x2b\x3e\x4d\x6e\xe3\xc1\xfb\x7e\xa7\xc8\x21\x18\xbf\x5a\x0d\x19\x2e\xad\xbb\x71\x3b\xbc\x08\xfa\xa6\xbd\xd5\x21\x7f\x40\x33\xce\xb1\x14\xea\x94\x51\x34\x6f\xf6\x56\xb2\xd1\xec\x61\x77\x00\x2c\xb5\x85\x4f\x8c\xdd\x0f\x3b\x30\x4e\x06\x03\xf3\x17\xbf\xbd\x79\xf7\xed\xec\xe2\xf3\xdb\x0f\xef\xbe\xbd\xbf\xf8\x74\x7e\x12\xb7\x68\x19\x93\xe3\x09\x46\xe2\xd4\x51\x48\x65\x44\x03\x0e\xb8\x60\x55\x2c\x29\xea\x8e\x18\xe6\x14\xcc\x14\x0c\x70\xf7\xf2\x68\x42\x66\x6c\x4f\x6f\x15\x10\x98\x8d\x12\x67\x3a\xcf\xd2\x3f\xdd\xe2\x2c\xe9\xc1\x7b\xcd\x57\x59\x98\xda\x58\x87\xc4\x68\x28\x70\x6a\x23\xcb\x64\xc7\x00\x0f\x8e\xe4\x9b\xa0\x3b\x7b\xf1\x32\x48\x7c\xa3\xed\xab\x93\x09\x99\x3b\xc9\x83\xa8\x7c\x15\x96\xfe\xec\x59\xda\xc9\x39\xf8\x90\x92\xf1\x3b\xcf\x9e\x8d\x79\x33\xdd\xdd\xa7\xdc\xc4\xcb\x08\x5d\x0a\x67\x6a\x69\xf5\x0f\x55\xf2\xce\x33\x7e\xbe\xf6\xc5\x2b\x1e\xb2\xc9\x54\xf2\x58\x6d\x0a\xe9\x83\xa6\x83\x8e\x4b\x84\x53\x21\xe3\x86\xb6\x67\x52\x85\xf5\xad\x2c\xd5\x10\x99\xe1\xa9\x04\x23\xbe\xb4\x7b\xce\x6a\x8e\xcf\xa9\x07\xc8\x65\x1b\x15\x37\x1e\x1c\xe4\x37\x0f\x0a\x2c\x7e\xd9\xd1\x75\x48\x55\x1f\xa3\x5a\x1c\x6e\x35\x33\x2f\x4d\x83\x22\x04\x17\xb2\x00\x0c\x50\xc3\x93\x1f\xe2\x83\x85\x55\x8a\xd9\x4d\x8f\xaf\x83\x82\x3f\x27\xda\x75\x28\x86\xda\x3d\xe5\xc8\x55\xa4\x1f\xbc\x36\x3f\x31\x80\x67\xf6\xbe\xe4\x08\x8b\x26\xb9\x02\x8a\xb4\x6e\x67\xfc\xab\x50\x9e\xf1\x47\x0d\x0b\x10\xda\x9a\xb8\x66\x3d\xc2\x0a\x4b\x3b\x9a\x1f\xae\x19\x6c\x10\x76\x76\x78\xe5\x4a\x8f\x68\xda\x1f\xe9\x86\x1b\xfd\x33\xea\x55\xb4\xd8\xda\x3e\xde\xd1\x52\xfc\x41\x25\x37\x6a\xd6\x48\xd4\x6f\xd7\x5b\x75\x20\x74\x78\xc0\x1a\x0f\xe2\x4a\xc1\x49\xc5\x7d\x54\x87\x15\x79\x08\xca\xc8\xef\xd3\x87\xb3\xab\x8b\x6f\xd7\x57\x37\xe7\x67\x17\x1f\x2f\xae\xd0\x4c\xee\xb4\x35\x2d\xf7\x82\x3b\xe8\x46\xad\x85\xb4\xa5\x32\x0c\xc3\xfe\x9a\x98\xf2\xd2\x4d\x7c\x63\x27\xe5\x6c\xf3\x72\xe3\x60\xcd\xb4\x44\x03\x24\x08\x46\x87\x53\x02\x3d\x92\x3a\x7f\xcf\x43\xb1\xdf\xb7\x5e\x3e\xe0\xbc\xef\x2d\x72\x3a\x7c\xa2\x40\xd2\xb3\x9e\xa9\xaa\x47\x0e\x32\xbb\x28\x1a\x03\x3c\xf7\x15\x9c\xa7\x0b\x18\x9a\x0c\x26\x38\x19\x1e\x06\x40\xf4\x18\x8f\xaa\x0a\x4c\x64\xef\xd1\x75\x4b\xd8\x0e\x16\x5c\x8d\x87\xe7\x40\x89\x66\x72\x1f\xca\x74\x7a\x0e\x71\xb2\xa1\xdb\x27\xf2\x50\x0e\x63\x8d\x24\xcf\xa6\x37\xa6\xf0\xd2\xc2\xbe\x7e\x4a\x73\x4b\x13\x16\xe4\xc5\x9e\x70\xf0\x06\xf3\xe4\xc9\x53\xb4\xd1\xd8\xff\xa8\xea\xd1\xfd\xc4\x80\x8e\xa3\x55\xea\x35\x34\xe0\x94\xe9\xbd\x85\x92\x59\x64\x87\x09\x8c\xc3\x7e\x58\xff\x11\x94\x4b\x62\xa5\x30\xfe\x14\xa1\x3b\x1f\x76\x15\xe6\x92\xf8\x67\xec\x23\xaa\x1a\x10\x0a\xe2\x15\x8d\x02\xf3\x61\xc3\x53\xd0\x3e\xc2\x87\x0b\x01\x69\xcf\xef\x1d\x86\x66\x9d\xac\xc1\x00\xc2\xef\x3f\xf1\x19\xb7\xc0\x58\x1f\xdc\x3d\x53\x32\xda\xc3\x67\x44\x3c\xb3\xca\xfe\x1f\x00\x00\xff\xff\xbc\x30\x5f\x05\x0e\x17\x00\x00") func runtimeHelpHelpMdBytes() ([]byte, error) { return bindataRead( @@ -252,7 +254,47 @@ func runtimeHelpHelpMd() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "runtime/help/help.md", size: 6295, mode: os.FileMode(420), modTime: time.Unix(1462111989, 0)} + info := bindataFileInfo{name: "runtime/help/help.md", size: 5902, mode: os.FileMode(420), modTime: time.Unix(1462461886, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _runtimePluginsGoGoLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x91\x4f\x4f\xec\x20\x14\xc5\xf7\xfd\x14\x37\x24\x2f\xa1\xef\xf5\xf5\x03\x34\x99\x85\x2e\x9c\xe5\x18\x5d\x1a\x35\xd8\xde\xb6\x24\x0c\x10\xb8\x9d\xd1\x18\xbf\xbb\xd0\x32\xff\x9c\xfa\x8f\x4d\x53\xee\x39\x3f\xce\x01\xd9\xc2\x12\x69\x65\x49\x1a\xcd\x59\x67\xe4\xda\x1a\x47\x9e\xe5\xb0\x58\x80\x96\x0a\xa8\x47\x9d\x41\x58\x17\x4d\x73\x2e\x2b\xa0\x15\xca\x63\x9e\xa1\x6e\xb2\x8f\xac\x76\x4d\xdf\x71\xa2\xa4\x00\x72\x43\x42\x64\xed\xa0\xeb\x38\x84\xce\x3c\x1a\x7d\x2b\x36\xc8\xf3\xd1\x16\xe0\x1b\x89\xdb\xf2\x72\x68\xcb\x2b\xa9\x90\x5e\x2c\x46\x36\x5b\x1a\x76\x80\x27\xe5\x27\x95\x4e\x64\x71\x85\x43\xf6\xf3\x74\x4e\x5c\x18\x2a\xcd\x97\x99\x27\x84\xd9\xb1\x3b\xf6\xd8\xfd\xc4\xcc\xd5\x0d\xae\x2c\xea\x24\x89\xe3\xb3\xaa\xc7\x0c\x65\x6a\xa1\xa0\x17\xba\x51\xa1\x21\x48\x53\x5a\x13\xed\x53\x08\xf8\xbf\x05\x06\x65\x79\xb8\x8d\x6b\x41\xfd\xb1\xd3\xa1\x1f\x14\x05\xe7\x84\xa8\x1c\x8a\x86\xb3\xbf\x82\x4d\xa2\xb4\x5b\x2b\xe3\xe3\xdd\xce\x44\x39\xbd\x90\x2f\xe2\x24\xe1\x2f\x22\x05\xbe\xb7\x4a\x12\x3f\xcb\x56\x00\xab\x7e\x98\x70\x22\x78\x72\x05\x78\xb4\xb3\xe7\xbc\xbe\x9d\xec\x76\xf8\x1c\x36\x39\xe3\x77\x0f\x7f\xfc\xfd\xbf\x9c\xe5\x55\x6b\xdc\x5a\x04\xca\x0e\x10\xfe\x01\x45\xdd\x83\xd4\x10\xd0\x55\x17\xa6\x75\xcf\x47\x6f\x0e\x8d\xd9\xbf\x28\x89\x27\x85\xa5\xd4\x1e\x1d\xf1\xe9\xc0\x62\x74\x1e\x9e\x37\x7e\x1d\xd2\xe0\x74\x4a\x34\x76\x78\x0f\x00\x00\xff\xff\xb7\x44\x98\xaf\x6b\x03\x00\x00") + +func runtimePluginsGoGoLuaBytes() ([]byte, error) { + return bindataRead( + _runtimePluginsGoGoLua, + "runtime/plugins/go/go.lua", + ) +} + +func runtimePluginsGoGoLua() (*asset, error) { + bytes, err := runtimePluginsGoGoLuaBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "runtime/plugins/go/go.lua", size: 875, mode: os.FileMode(420), modTime: time.Unix(1462462186, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _runtimePluginsLinterLinterLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x55\x6d\x6b\xe4\x36\x10\xfe\xbe\xbf\x42\x88\xba\x58\x89\xed\xd0\x7c\x5c\x48\xe1\x7a\xa5\x81\x72\xed\x1d\xa4\xe5\x3e\xf4\xe5\xd0\xda\xe3\xb5\x1a\x59\x32\x92\x9c\xcd\x52\xfa\xdf\x3b\x92\x1c\xaf\x6d\x9c\xf8\x96\x10\xcd\xca\x33\xcf\x33\x2f\xcf\x8e\x45\x4d\xee\xc1\x7d\xec\x9c\xd0\x2a\xa5\x52\x28\x07\x86\x32\x72\x77\x47\x94\x90\xc4\x35\xa0\x76\x04\x3f\xef\xaa\x6a\xe1\x93\x11\x67\x7a\x60\x3b\x50\xd5\x6e\x57\xf7\xaa\xf4\x4f\x49\x7c\xf8\x45\xab\x07\xfe\x04\x29\x0b\xb1\xaf\x50\x8c\xd8\xfe\x23\x75\xc9\x25\xa9\x1d\xb9\x23\x4f\x02\x4e\xc5\x0f\x7d\x5d\xfc\x24\x24\xb8\x73\x07\x4b\x27\xbc\x9e\xba\x7d\xe2\xae\x59\xb8\x54\xf0\xa4\x7a\x29\xd1\x8b\xde\xa0\x7d\xe3\xbf\xd0\xd1\x07\xf3\xf9\xf8\xe0\x2b\xa4\x27\xa1\x2a\x7d\xb2\x74\x9e\x8b\xff\x4c\x10\x7e\xfd\xfd\xc3\x25\xd6\x57\x3b\xc1\xf1\x09\xa3\xcb\xbd\x5e\x81\x18\x5a\xe1\x8f\x94\x1e\xf5\xa1\x17\xb2\xc2\xae\xa1\x49\x82\x4d\x72\x4d\x28\x29\x8a\x17\x2e\x7c\x94\xd4\xfb\x44\xee\x49\xd2\x52\xf6\x16\x94\x3f\x23\x92\xb7\x22\xc8\xac\x1d\x23\x54\x52\x5d\x2f\xe0\x40\x5a\xb8\x24\xfe\xa1\xe7\x5b\x99\xcb\x9e\x97\x0d\x94\x8f\x9e\xf0\xc5\x26\x79\xae\x74\x5e\x6a\xa9\x4d\x64\xf7\x33\xf9\x6a\xd2\x4f\x67\xd7\x68\xb5\xc5\xdb\x9d\x6b\xc9\x1f\xc1\x7a\xde\x17\x7b\x85\xec\x2d\xa2\xf7\x9b\x53\x29\xcb\xd0\xc7\xb2\x24\x79\x6d\xcf\xca\xf1\xe7\x5c\x2b\x79\x26\xf9\x67\x8e\xc3\xcf\x3f\xc3\xb3\x33\xfc\x95\x12\x8b\xb7\xab\xfc\x71\x8b\xbc\x6a\x83\x1c\xf0\x20\xb1\x95\x77\xba\xae\x51\x14\x39\xc9\x4f\xf8\x27\xf0\x76\xc1\x9c\xa4\x89\x4c\xd8\x16\xf1\xcf\xfc\x69\x73\xa8\xff\xa0\x4f\x28\x3d\x18\x6b\x6d\x05\x63\xb4\xd9\xe4\x79\x28\x8d\xe8\xdc\x26\x9b\x6d\x06\xc5\x46\x6b\xc9\xe7\xbd\x81\x24\x32\x2b\xae\xb3\x05\xe3\xf0\x73\xf3\xcc\xe3\xa5\x97\xfa\xfe\xbd\x04\x6e\xde\x49\x79\xdf\x3b\x24\xfa\x05\xac\xe5\x47\xb0\xc3\xc6\xf1\x61\xab\x7b\x29\xe4\x13\xed\x8c\x94\x6d\x95\xc5\x3a\x6b\x6d\x5a\xee\x62\xec\x05\x7d\x01\x1d\xc3\xd8\x2e\x78\xc5\x3d\xd3\x70\x55\x85\x65\x24\x74\xd1\xe9\x0e\x70\xbd\xa5\xa1\x36\x84\xf6\x07\x65\xe1\x1b\x25\xb7\xdf\x7f\xfb\xdd\x50\x56\x8c\xf4\x15\x5b\x0c\x1c\xf2\xb2\x9d\x14\x2e\x8d\x70\x7b\x03\xbc\x4a\xe9\x15\xa7\x0c\xdb\xf3\xa7\x1a\xe2\x86\x87\xa5\xd4\xd6\x2f\xd6\x09\x96\x81\x23\x3c\x23\xd6\xa4\x94\xfd\xd1\xf6\x87\x94\x26\x49\xed\xbb\x9e\x16\xd7\x8c\xb2\xf1\x4e\x86\x3b\x94\xf0\xf4\xb2\xbd\x38\x06\x68\xc4\x21\x5f\xb2\x30\x18\xa1\x88\xe8\xb8\x30\xa1\x05\x60\x19\xa9\xf4\x38\x8b\x3c\x27\xbf\x19\xd1\x92\x53\x23\x1c\xd8\x8e\x97\x93\x6d\xed\x63\x43\x85\xb0\xc7\x94\xca\x26\xa5\x7f\x27\xf6\xca\x73\xe0\xf1\xcd\x64\xca\xa8\x29\xeb\x8c\x50\xc7\xa2\xc6\x85\x1c\x58\xb2\x58\x15\x5b\x51\xd6\xf8\x12\xc8\x48\xf4\x6c\xed\x11\x79\x06\x84\xc8\x34\x85\x98\x45\x23\xd5\xd0\xf2\x03\xb7\xa0\x78\x0b\xe9\x6c\x73\x86\x37\xdf\xd2\xc3\x93\xad\x64\x32\xaa\x65\x26\x94\x51\x5e\x4e\xab\xbe\x3d\x80\x09\xc9\xb0\x90\x66\x46\x6e\xe7\xe9\x4c\x5f\x27\xa3\xd6\x5f\x13\x6f\x14\x09\xd6\x99\x11\x0b\x1d\x9b\x29\xc0\xf6\xd2\xbf\x3b\xff\xfd\x6f\x45\x17\x28\xca\x3f\xb0\xf3\x7f\x85\x79\x47\x7d\xa4\x23\x80\x9f\x33\xe0\x56\xf7\x53\x46\xe8\xfd\x31\x36\x70\xe8\xfe\x64\xd2\x8e\x1f\x24\x14\x42\x59\x30\x2e\x8d\x84\x59\x88\xbc\xfc\xe4\xfc\x69\xc0\xf5\x46\x0d\x19\xad\xd7\x31\xef\xeb\x24\x61\x7f\x79\x99\x64\x50\xe6\xb0\x24\xd2\xe2\xea\x86\xe1\x3f\xe6\x55\x9a\xdc\x0e\xda\x19\xb8\x7c\x58\x60\xfa\x3f\x00\x00\xff\xff\xd5\x66\x68\xff\xcc\x08\x00\x00") + +func runtimePluginsLinterLinterLuaBytes() ([]byte, error) { + return bindataRead( + _runtimePluginsLinterLinterLua, + "runtime/plugins/linter/linter.lua", + ) +} + +func runtimePluginsLinterLinterLua() (*asset, error) { + bytes, err := runtimePluginsLinterLinterLuaBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "runtime/plugins/linter/linter.lua", size: 2252, mode: os.FileMode(420), modTime: time.Unix(1462462242, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -1552,7 +1594,7 @@ func runtimeSyntaxRMicro() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "runtime/syntax/r.micro", size: 238, mode: os.FileMode(420), modTime: time.Unix(1462215620, 0)} + info := bindataFileInfo{name: "runtime/syntax/r.micro", size: 238, mode: os.FileMode(420), modTime: time.Unix(1462282751, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -2014,6 +2056,8 @@ var _bindata = map[string]func() (*asset, error){ "runtime/colorschemes/solarized-tc.micro": runtimeColorschemesSolarizedTcMicro, "runtime/colorschemes/solarized.micro": runtimeColorschemesSolarizedMicro, "runtime/help/help.md": runtimeHelpHelpMd, + "runtime/plugins/go/go.lua": runtimePluginsGoGoLua, + "runtime/plugins/linter/linter.lua": runtimePluginsLinterLinterLua, "runtime/syntax/Dockerfile.micro": runtimeSyntaxDockerfileMicro, "runtime/syntax/LICENSE": runtimeSyntaxLicense, "runtime/syntax/README.md": runtimeSyntaxReadmeMd, @@ -2151,6 +2195,14 @@ var _bintree = &bintree{nil, map[string]*bintree{ "help": &bintree{nil, map[string]*bintree{ "help.md": &bintree{runtimeHelpHelpMd, map[string]*bintree{}}, }}, + "plugins": &bintree{nil, map[string]*bintree{ + "go": &bintree{nil, map[string]*bintree{ + "go.lua": &bintree{runtimePluginsGoGoLua, map[string]*bintree{}}, + }}, + "linter": &bintree{nil, map[string]*bintree{ + "linter.lua": &bintree{runtimePluginsLinterLinterLua, map[string]*bintree{}}, + }}, + }}, "syntax": &bintree{nil, map[string]*bintree{ "Dockerfile.micro": &bintree{runtimeSyntaxDockerfileMicro, map[string]*bintree{}}, "LICENSE": &bintree{runtimeSyntaxLicense, map[string]*bintree{}}, diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 1a685407..0fd7bd29 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -406,6 +406,13 @@ func (v *View) ClearGutterMessages(section string) { v.messages[section] = []GutterMessage{} } +// ClearAllGutterMessages clears all the gutter messages +func (v *View) ClearAllGutterMessages() { + for k := range v.messages { + v.messages[k] = []GutterMessage{} + } +} + // DisplayView renders the view to the screen func (v *View) DisplayView() { // The character number of the character in the top left of the screen diff --git a/runtime/plugins/go/go.lua b/runtime/plugins/go/go.lua index f6667304..a1cecddc 100644 --- a/runtime/plugins/go/go.lua +++ b/runtime/plugins/go/go.lua @@ -13,9 +13,6 @@ function go_onSave() go_gofmt() end - linter_lint("go build", "go build -o /dev/null 2>&1", "%f:%l: %m") - linter_lint("go lint", "golint " .. view.Buf.Path, "%f:%l:%d+: %m") - view:ReOpen() end end diff --git a/runtime/plugins/linter/linter.lua b/runtime/plugins/linter/linter.lua index f092603b..f0c3e5f6 100644 --- a/runtime/plugins/linter/linter.lua +++ b/runtime/plugins/linter/linter.lua @@ -1,25 +1,33 @@ +if GetOption("linter") == nil then + AddOption("linter", true) +end + function linter_onSave() - local ft = view.Buf.Filetype - local file = view.Buf.Path - local devnull = "/dev/null" - if OS == "windows" then - devnull = "NUL" - end - if ft == "Go" then - linter_lint("gobuild", "go build -o " .. devnull, "%f:%l: %m") - linter_lint("golint", "golint " .. view.Buf.Path, "%f:%l:%d+: %m") - elseif ft == "Lua" then - linter_lint("luacheck", "luacheck --no-color " .. file, "%f:%l:%d+: %m") - elseif ft == "Python" then - linter_lint("pyflakes", "pyflakes " .. file, "%f:%l: %m") - elseif ft == "C" then - linter_lint("gcc", "gcc -fsyntax-only -Wall -Wextra " .. file, "%f:%l:%d+:.+: %m") - elseif ft == "D" then - linter_lint("dmd", "dmd -color=off -o- -w -wi -c " .. file, "%f%(%l%):.+: %m") - elseif ft == "Java" then - linter_lint("javac", "javac " .. file, "%f:%l: error: %m") - elseif ft == "JavaScript" then - linter_lint("jshint", "jshint " .. file, "%f: line %l,.+, %m") + if GetOption("linter") then + local ft = view.Buf.Filetype + local file = view.Buf.Path + local devnull = "/dev/null" + if OS == "windows" then + devnull = "NUL" + end + if ft == "Go" then + linter_lint("gobuild", "go build -o " .. devnull, "%f:%l: %m") + linter_lint("golint", "golint " .. view.Buf.Path, "%f:%l:%d+: %m") + elseif ft == "Lua" then + linter_lint("luacheck", "luacheck --no-color " .. file, "%f:%l:%d+: %m") + elseif ft == "Python" then + linter_lint("pyflakes", "pyflakes " .. file, "%f:%l: %m") + elseif ft == "C" then + linter_lint("gcc", "gcc -fsyntax-only -Wall -Wextra " .. file, "%f:%l:%d+:.+: %m") + elseif ft == "D" then + linter_lint("dmd", "dmd -color=off -o- -w -wi -c " .. file, "%f%(%l%):.+: %m") + elseif ft == "Java" then + linter_lint("javac", "javac " .. file, "%f:%l: error: %m") + elseif ft == "JavaScript" then + linter_lint("jshint", "jshint " .. file, "%f: line %l,.+, %m") + end + else + view:ClearAllGutterMessages() end end