diff --git a/internal/config/runtime.go b/internal/config/runtime.go index c5e5bb78..954bb947 100644 --- a/internal/config/runtime.go +++ b/internal/config/runtime.go @@ -50,7 +50,6 @@ // runtime/plugins/ftoptions/info.json // runtime/plugins/linter/info.json // runtime/plugins/linter/linter.lua -// runtime/plugins/linter/test.txt // runtime/plugins/literate/README.md // runtime/plugins/literate/info.json // runtime/plugins/literate/literate.lua @@ -1365,7 +1364,7 @@ func runtimePluginsLinterInfoJson() (*asset, error) { return a, nil } -var _runtimePluginsLinterLinterLua = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x59\x5f\x8f\xa4\xb8\x11\x7f\x9f\x4f\x61\xa1\x20\xd1\x3b\xc0\xec\x5e\x2e\x2f\x48\xad\xe8\xb2\xb9\x8b\x14\xed\x9f\x48\xbb\x51\x1e\x76\xf7\x22\xb7\x29\xba\x7d\x63\x6c\x62\x9b\xee\xe9\x8c\xf6\xbb\x47\x65\x1b\xda\xd0\x30\x3b\xb9\xbb\x96\x06\x8c\x29\xff\xea\x7f\xb9\xcc\x08\xc5\xa8\x20\x2d\x67\x5a\x91\x2d\xe1\x6d\xa7\xb4\xcd\x12\xf7\x9c\x6c\x6e\xfc\x5b\xdd\x4b\xcb\x5b\x88\xde\x87\x99\x91\xa2\xe1\x02\x3a\x6a\x0f\x11\x09\x3e\xde\x0d\xf3\x23\xa1\x39\x80\x10\x73\x46\x77\x6e\x76\xa4\xd9\xf5\x4d\x03\xfa\x8a\xc8\x4f\x8f\x54\x4c\xc9\x86\xef\xaf\xa8\xfc\x74\xb2\xb9\x09\x64\x82\x4b\x0b\xda\x90\x2d\x79\xfc\x7a\x73\x53\x14\x84\x69\xa0\x16\x0c\xa1\xe1\x15\x01\x69\xf5\x39\x27\x8c\x0a\x41\x1a\xad\x5a\x72\xe2\xf6\xc0\x25\xa1\x92\x70\xc9\x2d\xa7\x82\xff\x97\x5a\xae\x24\x69\x7a\xc9\x70\x90\x13\xa9\x2c\x62\xd5\x5c\x03\xb3\xe2\x4c\xa8\x1d\x68\x89\x50\xb4\x26\x68\x9c\x9b\xa2\x40\x1a\x49\x5b\xa8\xdc\x95\xa8\x86\xd8\x03\x04\xbe\xf8\x0e\xcd\x63\xcf\x1d\x54\xe3\x88\x58\x45\xd8\x01\xd8\x3d\x69\x94\xc6\x87\xde\xc4\x0b\x58\x5b\x57\xa4\xa5\x5c\x0e\xc2\x77\x5a\x31\x30\x86\xd8\x03\x8a\x60\x08\x3c\x00\xeb\x2d\xd4\x48\x4c\xf5\xde\x54\x78\xed\x5b\x90\xd6\x20\x5a\x47\x8d\xbb\x5f\xc4\x18\x10\x70\x01\xfe\x90\x5f\xda\x20\x8d\x06\xf4\x42\x20\x66\xbd\xd6\x20\xad\x93\xd3\x29\x33\xa1\xaf\x57\xe9\xbd\x85\x94\x3e\x8f\x8b\x40\x6b\xa5\x1b\xa5\x5b\x6a\x2b\x72\x50\x27\x2f\x96\x36\x10\x09\x75\xc7\x54\xdb\x71\x11\xe9\xa7\x7a\xdb\xf5\x76\x60\x9a\x36\xde\x62\x39\x49\x45\x85\x6b\x80\xc8\xbe\xdd\x81\xce\x49\xda\x56\x9e\xc5\xdd\x89\x6a\xc9\xe5\x9e\xb4\x60\x0c\xdd\x3b\xde\xca\x20\xb5\xb1\xe8\x89\xf7\x1f\xd0\x6a\xdc\x0c\x76\xe0\x86\x98\xbe\xc3\x50\x82\x9a\x28\x4d\x7a\x19\x3d\xca\x81\xb3\xea\x30\x00\xa8\x40\x91\x69\x9b\x93\x1a\x1a\xda\x0b\x5b\x61\x74\x15\x05\x39\x1d\xb8\x05\xe4\x50\x11\x73\x50\xbd\xa8\x9d\x52\xef\x3f\x78\xae\x3b\x20\x94\xec\x04\x65\xf7\xee\x31\xab\x15\x06\x12\xa6\x57\xec\x10\xe7\xf8\x03\x18\x5c\x67\x36\x03\xe3\xf0\x53\x9a\xd0\x0b\x17\x92\x29\x29\xce\xcf\x03\x58\x95\xbc\xa1\xc2\x00\xc9\x82\xbc\xa3\x78\x6e\x61\xad\x5a\x6a\xd9\x61\xa2\xcd\x18\xaa\x3b\x20\x8e\x61\xa7\x01\x8d\x44\x5d\x4e\xf5\x94\x74\xd4\x5a\xd0\x12\x1d\xeb\x56\xbb\x84\x9a\xe8\x81\x30\x94\xd9\x3e\x54\x0e\x44\xcb\x51\xb5\x88\x4b\xd0\xc5\xe9\x47\x99\xe5\x47\x6a\x81\x28\x97\x95\xf0\x40\x99\xf5\xd0\xcf\x55\x4e\xc3\x7f\x7a\xae\x21\x5e\xea\xf4\x13\xaa\x69\x0c\xd8\x10\x43\xfe\x81\x9c\xb8\x10\xce\x57\x75\x0d\x75\x94\x2d\x43\x90\x11\x0d\xb6\xd7\x12\x6a\xb2\x3b\xcf\x12\x7a\xfc\xf5\x06\x9a\x5e\x10\x1e\x67\x7c\x58\x67\xc8\xcb\x82\xcb\x1a\x1e\xa0\x76\xa8\xe6\x9b\x4a\xbc\x74\xa9\x3f\x88\xca\x94\xe8\x5b\xf9\xa4\xb0\x4c\x89\xdf\x5f\x56\xcf\xf7\x39\xd2\x0e\x75\x92\xb4\xf4\x1e\xde\x38\xbc\x0c\xd3\x3f\x8f\xbc\xcd\xda\x3a\x77\x15\x2a\x8f\x2b\x42\x4e\x94\xc9\x2f\xf1\x9d\x0f\x01\x98\x0f\x9e\xca\x07\x3b\x6c\x6e\x50\x08\xde\x0c\x05\xfe\x13\x32\xf8\x42\xb6\x5b\x22\xb9\x40\x45\xe4\xcd\xa0\xdf\x8c\x02\x53\x75\xf1\x55\x39\x46\xf6\x76\x14\x74\x85\x92\xb5\x35\xd9\xa2\x0e\x2b\xef\x51\x31\xb2\x75\xfa\xad\x50\x44\x4a\x93\x6d\x6c\x82\x15\x7a\x85\x78\xca\x60\x96\xac\xca\x7f\xa9\x0b\xdb\xa8\x46\x28\xed\xb3\x60\x65\x51\xb0\x30\xd9\x0e\xb6\xfe\xd6\x82\xe0\x09\xb2\x1d\x7c\x82\x0b\x5e\xae\x19\x6a\x24\x66\x73\x62\x90\xf5\x0d\xfe\x5d\xc2\x45\x43\xab\x8e\x71\xc0\x78\x27\xcf\xfd\x27\xb9\x98\x2d\xc4\xbd\x37\x0b\xc4\x6e\xd7\xaf\xe1\x28\x7b\xd7\x68\x24\x77\x35\x1c\xef\xf0\x21\x19\x22\x26\x34\x2f\xe5\xdf\xde\xbf\xff\x80\x01\x93\x9c\xb8\xac\xd5\xc9\x24\xd3\xb0\x89\x30\xde\xfd\xf3\x4d\x32\xca\xec\x06\x51\x64\x27\x7b\xc6\x92\x9c\x24\xee\xe2\xc7\x8f\x49\xd1\x98\xb3\xb4\xf4\xa1\xc0\x02\x86\x2f\x8a\x7f\x51\x21\xfc\x00\x1e\xac\xa6\x38\x4c\x9b\xe4\xab\xbb\x55\xa9\xa8\x52\x56\x95\xb7\x15\x49\xdb\x64\xb3\xca\xe1\xf6\xf6\x09\x1e\x49\x61\x6c\xbd\x65\xb7\xb7\xaf\xbe\xff\xcd\x0c\xeb\xb6\x46\x7a\x7f\x71\xe3\xc7\xa4\x60\x4a\x28\xbd\x55\x4d\xe3\x50\x55\xe1\x6e\x27\x7f\xe5\xee\xc6\x26\x4c\xd2\x2c\x15\xe9\xe6\x09\xad\xd4\xae\xe7\xc2\xf1\xd8\xab\xf1\xfa\x98\x8c\xb3\x05\x3e\x07\x37\x4c\xe4\xfe\xf3\x05\xb0\x28\x66\x98\x18\x2d\x31\x64\x78\x7e\xbc\x52\x7e\x59\xa8\x5f\xe8\x91\x3a\x35\x70\x30\xdc\x83\xbd\x9d\x50\x69\x7d\x65\x49\x9f\xbe\x6b\x80\xe6\x10\x24\x42\x24\xc3\x34\xef\xfc\xd3\x30\x1f\x4b\xe6\xb7\x99\x54\xe4\xe5\x6d\xbe\x0c\x27\xb8\x05\x4d\x2d\x20\xc4\x6c\x1c\xbc\x74\xed\xe8\x16\xdf\x7c\xcd\x7d\x56\xe7\xc4\xea\x1e\x16\x80\x7b\xea\x1a\x4f\x07\xd6\xd3\x70\x1b\xa6\x1e\x93\xa2\x90\xca\x87\xc0\x52\x24\x2d\x0b\x2b\x39\xb2\x9e\xde\x1e\x93\x91\x4d\x51\x60\x81\xfa\xa9\x17\xe2\x1f\xd4\x1e\x8c\x9f\x32\xb6\x56\xbd\xf5\x63\xb4\x90\xa9\x42\xc4\x8d\x2c\xcb\x54\xe4\x24\x65\xe5\x32\x4f\x26\xa8\xdc\x23\xbd\xda\xfd\x02\xd8\x38\x80\x37\xc9\x03\xd3\xbd\xf4\xfc\x07\x8a\xdf\x37\x49\xbb\x73\x23\xe8\x3d\x38\x35\xba\xb3\x3d\x28\xe9\x47\xe3\xec\x2c\x04\xcb\x22\x8e\xe3\x18\xa9\x3d\x77\xe7\x29\x4a\x98\x99\x21\xac\xc9\x31\xa4\x40\x2c\xc5\x98\x06\x45\xe1\x7b\xe9\xc2\x6f\x37\x5b\xd7\x7b\xd3\x9d\x00\x6f\x72\x0d\xd8\xf3\x9a\xad\x54\xd7\x61\xbe\xc8\xce\x1c\x9a\xd6\x71\xf3\x87\x38\x37\xf0\x33\xcf\x4d\x39\x73\xe2\x8d\x75\x3e\x72\xa3\xa9\xb3\x2e\x2f\x57\x1c\x81\x44\x35\xd5\x27\x2e\xf1\xf5\x72\x6c\xcf\x38\xb0\x45\xe1\x22\x3c\xc1\x65\xff\xb0\x0e\x77\xa6\xad\x53\x34\xbe\x47\xf6\xf5\x86\x75\x66\xa7\xda\x0c\xa6\xbd\x66\xe7\xad\xe1\xd0\xfd\xa9\xb5\x7c\x4b\xef\xe1\xb5\x6a\x5b\x2a\x6b\xcc\x74\xef\x45\xbf\xfd\x95\x78\x7b\xed\x4a\x71\x20\x7e\xa7\x5e\xab\xb6\x13\x60\x61\x33\xdb\x0e\x03\x69\xb6\xeb\x7c\x8b\xe5\x35\xd8\x75\xd5\x07\x7a\x84\xb0\x4f\xea\x5e\x06\x75\x76\x5d\xf9\x97\xbe\x99\x63\x30\x25\x2d\xe5\xd2\x64\xbe\x0f\x03\x01\x78\x88\xf4\x6b\xf1\x80\x71\x9f\x93\x23\xe1\x92\x74\x94\x6b\x4f\xb4\x21\xb5\x1a\x37\x4f\xde\x90\x23\xee\xad\x61\xdd\x74\x67\x75\xfc\x5d\x7f\xe9\x0c\x3c\xce\xa3\x04\xf1\x3d\xd0\xf8\x66\x64\xd6\x2a\x5c\xc4\x47\xd9\x2f\x3b\x7f\x83\xbd\xc6\xae\x6f\xaa\x9f\xb8\x80\x8f\xe7\x0e\x26\x7d\x81\x3b\xbe\xba\xf7\x25\x96\x9c\xb8\x63\xe0\x3a\xb4\x7d\x1d\xb5\x87\xf2\xaf\x5c\x67\xf8\x10\xfc\xb3\xa4\xb1\x6b\x4a\x26\x4a\x0f\x12\x0c\x0d\x15\xca\xb2\x25\xc7\xf2\xaa\x99\x44\xeb\x8c\x8d\xd7\x95\x69\x2e\x00\xc6\x6a\x2e\xf7\xa5\x7b\xcc\x1a\x9b\x47\x58\x9b\x89\xd5\x66\x22\x1c\xa8\xc1\xd6\xe6\xe2\xc4\x63\x89\x7d\x75\xdc\xf8\x6c\x62\x61\xf0\x14\xea\xd7\x50\x59\x93\x63\xd4\x48\x3e\x21\xdc\xb4\x47\x1c\x7c\x16\x10\x2f\x68\x88\xfd\xab\x11\x67\x7a\x85\xb6\x3a\x6a\x80\x83\x63\xa8\xde\x5f\x5c\x73\x74\xed\xf7\xc4\x33\xf8\xc3\xc9\x4f\xf7\x5f\x7c\x5b\x5e\xed\x4d\xbf\xcb\x92\x34\xc5\xad\xc5\x39\x7a\x9c\xc1\x14\xab\xb9\x5e\x31\x30\x6f\x46\x81\xaf\x34\xc1\x98\xc0\x78\xcc\x5d\xac\x94\xd1\x11\xe7\x58\x4e\x0e\x39\xc7\x72\x3c\xce\x1c\xcb\xc9\x81\x66\x9e\x06\xd3\xa8\x57\xd2\x65\xf0\xae\x5b\xcb\xe1\x79\x66\x5d\xd7\x05\x2f\x9f\x8f\xde\xf5\x53\x18\x8a\xe7\x8f\x5a\xa1\x76\xf4\x4d\xf5\x5a\x00\xd5\x6f\xfd\xc7\x94\x21\xfe\x43\x7a\xb8\xd2\x5f\xfe\x5d\xed\x3e\x74\xf4\x24\xb3\x08\x35\x49\xc2\x5f\xa8\x62\x4a\xfe\xf8\xe0\x3a\x95\x89\x18\xab\xbc\xe7\xea\xe3\xe2\xcc\xef\x5f\x71\x69\x1b\xbf\x1b\x7e\x13\x32\x1c\xca\x3e\xbd\xfa\xe2\xd7\x7f\xfa\x6e\x18\xfc\x71\x18\x7c\x3f\x0c\xfe\xf4\x25\x02\x77\x27\x75\x4c\xc9\x4e\x44\x22\x24\x9f\xe5\x50\xc2\xc3\xa7\x52\xd8\xc3\xc3\xf4\x40\x37\x09\xb5\x24\x2b\xcb\x62\x93\x5c\xa2\xcd\x6d\x20\x59\x5a\xdf\xc6\x93\x6c\x69\xb2\xf5\xcb\x71\x6e\xac\x49\xff\xce\x5d\xc3\xc8\x25\xe1\x63\x59\x82\x69\xe8\x17\x05\xf9\xa8\x79\xeb\x0f\x84\xa6\xa3\x6c\x72\xae\xc3\x6a\x88\xb7\xca\xd7\x98\xe4\xe7\xd4\xbc\x40\x1e\xa9\x79\xf1\x87\x64\x52\x23\x42\x2d\x6a\xb8\xac\x1d\x97\xdc\xeb\xba\x59\x48\x83\xb1\xd4\x3a\x77\xe0\x61\x5f\x89\x9c\xb4\x66\x3f\x2f\x69\x31\xce\x02\xc4\x81\x1a\xa6\xf0\x00\x36\xd9\x25\xa2\x9a\x15\xcb\x34\x71\xb8\xb3\xe1\x82\x68\xf8\x1b\x51\xa7\xe5\x66\xf8\x79\x31\x99\x12\x93\x37\x20\x0c\xf0\xc6\x7d\x58\x59\xfa\xc4\xf0\x0c\xec\xb8\x40\x3a\x3e\x9c\x69\x55\xbe\x51\xfb\x6c\x47\x0d\xe0\xd9\x36\x1b\xb6\xa5\x4d\x4e\xc6\x39\x57\x9b\x36\x73\xe5\xaf\x97\xa0\x58\xd3\x45\xcb\x12\x86\x54\xf1\x5a\xe2\x49\x7a\x4e\xe0\x8b\x37\x6a\xb1\xb8\xfe\x82\xd1\x1a\x4b\x75\xd8\x6d\x1b\xd0\xe5\x1b\xc5\x32\xab\xfc\x67\xa7\x8c\x29\x51\xbc\xba\x75\x49\x9c\x93\x71\x16\xfd\x5d\xbc\xba\xc5\x74\x9c\xe9\x34\x83\x06\x59\xaf\x03\xff\x0a\xd8\xa0\x6f\x00\x7c\x07\xa7\x50\xc7\xb2\xa1\x5c\xb4\x66\x9f\x07\x8d\x72\xc7\x3e\x1f\x88\xdf\x7e\xfc\x11\x23\xeb\x1a\x17\x96\xa2\xe7\x29\x66\x3f\xd8\x37\x5c\xce\x58\x4e\x74\xf0\x1a\x3c\x83\xf3\x2c\x94\x48\xa8\xd0\x3f\xd4\xf5\xa0\x17\xca\xb0\x59\x8d\xbf\xf5\x1d\xc6\x97\x37\x63\x75\x4e\x0c\x74\x9b\x49\x65\x33\xbd\xb0\x97\xdd\x77\x5a\xef\xb2\x24\xfb\xf4\x73\x6a\xbe\xb8\x8a\xe5\xb3\x30\x1b\x01\xb0\x52\x01\x65\x07\xac\x53\xc6\xea\x6a\xef\xb3\x3f\xd4\x8f\xa8\x56\x59\x6c\x96\x4b\x2e\x0d\x68\x9b\x79\x86\xb9\x5b\xb9\x59\xea\x0b\x3d\xc1\x4c\x81\x69\x0e\x44\x92\x1a\xe8\xdc\xe7\xa0\xff\xf7\x33\x50\x58\xf7\xf9\x73\x32\x91\xc1\x83\xba\x7f\xeb\x8c\x45\xcd\x55\x6a\x5f\xf7\x92\xac\x7c\x91\x90\xb2\x74\xcb\xcb\x92\x24\x9b\xac\x7c\xb1\x71\xe7\x80\xef\x92\xc9\x3e\xed\xfe\x2f\x82\xa8\xff\x0b\x00\x00\xff\xff\x75\x76\xba\x12\x8a\x1b\x00\x00" +var _runtimePluginsLinterLinterLua = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x59\xdd\x8f\xdb\xb8\x11\x7f\xdf\xbf\x82\x10\x6a\x40\xce\x4a\xda\xe4\x7a\x7d\x31\x60\x14\xd7\xf4\xae\x40\x91\x8f\x02\x49\xd1\x87\x24\x57\xd0\xd4\xc8\xe6\x2d\x45\xaa\x24\x65\xaf\xbb\x48\xff\xf6\x62\xf8\x21\x53\xb2\xb4\xd9\x5e\xcf\xc0\x5a\x14\x39\x9c\xf9\xcd\x27\x87\x5e\xa1\x18\x15\xa4\xe5\x4c\x2b\xb2\x25\xbc\xed\x94\xb6\x79\xe6\xde\xb3\xf5\x8d\x5f\xd5\xbd\xb4\xbc\x85\x64\x3d\xcc\x0c\x14\x0d\x17\xd0\x51\x7b\x48\x48\xf0\xf5\x2e\xce\x0f\x84\xe6\x00\x42\x4c\x05\xdd\xb9\xd9\x81\x66\xd7\x37\x0d\xe8\x2b\x22\x3f\x3d\x50\x31\x25\x1b\xbe\xbf\xa2\xf2\xd3\xd9\xfa\x26\x90\x09\x2e\x2d\x68\x43\xb6\xe4\xf1\xeb\xcd\x4d\x59\x12\xa6\x81\x5a\x30\x84\x86\x25\x02\xd2\xea\x73\x41\x18\x15\x82\x34\x5a\xb5\xe4\xc4\xed\x81\x4b\x42\x25\xe1\x92\x5b\x4e\x05\xff\x37\xb5\x5c\x49\xd2\xf4\x92\xe1\xa0\x20\x52\x59\xe4\x55\x73\x0d\xcc\x8a\x33\xa1\x36\xd2\x12\xa1\x68\x4d\xd0\x38\x37\x65\x89\x34\x92\xb6\xb0\x71\xdf\x44\x35\xc4\x1e\x20\xc8\xc5\x35\x34\x8f\x3d\x77\xb0\x19\x46\xc4\x2a\xc2\x0e\xc0\xee\x49\xa3\x34\xbe\xf4\x26\xdd\xc0\xda\x7a\x43\x5a\xca\x65\x04\xdf\x69\xc5\xc0\x18\x62\x0f\x08\xc1\x10\x78\x00\xd6\x5b\xa8\x91\x98\xea\xbd\xd9\xe0\x77\xdf\x82\xb4\x06\xb9\x75\xd4\xb8\xe7\x05\x46\xe4\x80\x1b\xf0\x83\xf2\x56\x0d\xd2\x68\x40\x2f\x04\x62\xd6\x6b\x0d\xd2\x3a\x9c\x4e\x99\x11\x7d\xbd\x48\xef\x2d\xa4\xf4\x79\xd8\x04\x5a\x2b\xdd\x28\xdd\x52\xbb\x21\x07\x75\xf2\xb0\xb4\x81\x04\xd4\x1d\x53\x6d\xc7\x45\xa2\x9f\xea\x6d\xd7\xdb\x28\x74\xd5\x78\x8b\x15\x64\x25\x36\xb8\x07\x88\xec\xdb\x1d\xe8\x82\xac\xda\x8d\x17\x71\x77\xa2\x5a\x72\xb9\x27\x2d\x18\x43\xf7\x4e\xb6\x32\x48\x6d\x2c\x7a\xe2\xfd\x07\xb4\x1a\x37\xd1\x0e\xdc\x10\xd3\x77\x18\x4a\x50\x13\xa5\x49\x2f\x93\x57\x19\x25\xab\x0e\x03\x80\x0a\x84\x4c\xdb\x82\xd4\xd0\xd0\x5e\xd8\x0d\x46\x57\x59\x92\xd3\x81\x5b\x40\x09\x1b\x62\x0e\xaa\x17\xb5\x53\xea\xfd\x07\x2f\x75\x07\x84\x92\x9d\xa0\xec\xde\xbd\xe6\xb5\xc2\x40\xc2\xf4\x4a\x1d\xe2\x1c\x7f\x00\x83\xfb\xcc\x3a\x0a\x0e\x1f\xa5\x09\xbd\x48\x21\xb9\x92\xe2\xfc\x3c\x06\x8b\xc8\x1b\x2a\x0c\x90\x3c\xe0\x1d\xe0\xb9\x8d\xb5\x6a\xa9\x65\x87\x91\x36\x43\xa8\xee\x80\x38\x81\x9d\x06\x34\x12\x75\x39\xd5\x53\xd2\x51\x6b\x41\x4b\x74\xac\xdb\xed\x12\x6a\xa4\x07\xb2\xa1\xcc\xf6\xa1\x72\x20\xb7\x02\x55\x4b\xa4\x04\x5d\x9c\x7e\x94\x59\x7e\xa4\x16\x88\x72\x59\x09\x0f\x94\x59\xcf\xfa\xb9\xca\x69\xf8\x57\xcf\x35\xa4\x5b\x9d\x7e\x42\x35\x8d\x01\x1b\x62\xc8\xbf\x90\x13\x17\xc2\xf9\xaa\xae\xa1\x4e\xb2\x25\x06\x19\xd1\x60\x7b\x2d\xa1\x26\xbb\xf3\x24\xa1\x87\x4f\x6f\xa0\xe9\x05\xe1\x69\xc6\x87\x7d\x86\xbc\x2c\xb9\xac\xe1\x01\x6a\xc7\xd5\x7c\x53\x89\x97\x2e\xf5\x23\x54\xa6\x44\xdf\xca\x27\xc1\x32\x25\x7e\x7b\xac\x5e\xee\x73\xd1\x52\x21\x76\x94\xdd\x6f\x86\xa2\xe9\x2a\x1b\x75\x60\x1b\xe5\x5c\x81\x95\x0a\x13\xf4\x22\xb5\x40\x10\xdc\x46\xe1\xe3\xd8\xf7\xae\x8c\xc4\x98\xaf\x8c\x4a\x06\x02\xea\x8a\x7c\x44\xa5\x83\x48\x5c\xc1\x3a\x07\x3e\x90\x76\x7d\x53\x7d\x13\xb3\xe4\xe2\x66\x00\xda\xd2\x7b\x78\xe3\xf0\xe4\x58\xb4\x8a\x24\x46\x59\x5b\x17\xae\xae\x16\x69\x1d\x2b\x88\x32\xc5\x25\x2b\x8b\x98\x36\x45\x8c\xaf\x22\x7a\xaf\x18\x50\xae\x6f\x10\x10\x6f\xe2\x01\xf5\x09\x45\x7d\x21\xdb\x2d\x62\x41\xe0\xf2\x26\x2a\x3e\xa1\xc0\x52\x33\xbb\x54\x0d\x99\xb9\x1d\x20\x2f\x50\xb2\xb6\x26\x5b\xd4\x66\x61\x1d\x55\x24\x5b\xa7\xe9\x02\x45\xa2\x3e\xd9\xa6\xc6\x58\xa0\x57\xc8\x4f\x19\xcc\xf2\x45\xfc\x97\xba\xb6\x4d\x6a\x9c\xd2\xde\xf5\x0b\x9b\x82\xad\xc9\x36\x5a\xfd\x5b\x1b\x82\x4f\xc8\x36\x7a\x07\x37\xbc\x5c\x32\xd4\x40\xcc\x9e\x41\x1c\x23\x70\x7b\x09\x46\xa5\x5d\x70\x21\x31\xc8\xfa\x06\xff\x2e\x91\xa6\xa1\x55\xc7\x34\xd6\x7c\x54\x4c\x1d\x8e\x0c\xc6\x1b\xb1\xd9\xc8\x03\xb1\x6b\x73\x6a\x38\xca\xde\x75\x56\xd9\x5d\x0d\xc7\x3b\x7c\xc9\x62\x88\x85\x6e\xad\xfa\xcb\xfb\xf7\x1f\x30\xc2\xb2\x13\x97\xb5\x3a\x99\x6c\x1c\x67\x09\x8f\x77\x7f\x7f\x93\x0d\x98\xdd\x20\x49\x8a\x6c\xcf\x58\x56\x90\xcc\x7d\xf9\xf1\x63\x56\x36\xe6\x2c\x2d\x7d\x28\xb1\x62\xe3\x42\xf9\x0f\x2a\x84\x1f\xc0\x83\xd5\x14\x87\xab\x26\xfb\xea\x1e\x9b\x95\xd8\xac\xd8\xa6\xba\xdd\x90\x55\x9b\xad\x17\x25\xdc\xde\x3e\x21\x23\x2b\x8d\xad\xb7\xec\xf6\xf6\xd5\xf7\xff\xb7\xc0\xba\xad\x91\xde\x7f\xb9\xf1\x63\x56\x32\x25\x94\xde\xaa\xa6\x71\x5c\x55\xe9\x1e\x27\xff\xcd\xdd\x83\x8d\x84\xac\xf2\x95\x58\xad\x9f\xd0\x4a\xed\x7a\x2e\x9c\x8c\xbd\x1a\xbe\x1f\xb3\x61\xb6\xc4\xf7\xe0\x86\x11\xee\x3f\x5e\x18\x96\xe5\x84\x27\x46\x4b\xca\x32\xbc\x3f\x5e\x29\x3f\x0f\xea\x17\x7a\xa4\x4e\x0d\x1c\xc4\x67\xb0\xb7\x03\xb5\xaa\xaf\x2c\xe9\xf3\x7d\x89\xa1\x39\x04\x44\xc8\xc9\x30\xcd\x3b\xff\x16\xe7\x53\x64\xfe\x5c\x5d\x89\xa2\xba\x2d\xe6\xd9\x09\x6e\x41\x53\x0b\xc8\x62\x32\x0e\x5e\xba\x76\x74\x8b\x2b\x5f\x0b\x5f\x06\x0a\x62\x75\x0f\x33\x8c\x7b\xea\x3a\x6d\xc7\xac\xa7\xe1\x11\xa7\x1e\xb3\xb2\x94\xca\x87\xc0\x5c\x24\xcd\x83\x95\x1c\x45\x8f\x1f\x8f\xd9\x20\xa6\x2c\xb1\xa2\xfd\xd4\x0b\xf1\x37\x6a\x0f\xc6\x4f\x19\x5b\xab\xde\xfa\x31\x5a\xc8\x6c\x42\xc4\x0d\x22\xab\x95\x28\xc8\x8a\x55\xf3\x32\x99\xa0\x72\x8f\xf4\x6a\xf7\x0b\x60\xa7\x04\xde\x24\x0f\x4c\xf7\xd2\xcb\x8f\x14\xbf\x6d\x92\x76\xe7\x46\xd0\x7b\x70\x6a\x74\x67\x7b\x50\xd2\x8f\x86\xd9\x49\x08\x56\x65\x1a\xc7\x29\xa7\xf6\xdc\x9d\xc7\x5c\xc2\xcc\x84\xc3\x12\x8e\x98\x02\x29\x8a\x21\x0d\xca\xd2\x5f\x1e\x4a\x7f\x3e\x6d\xdd\x65\x83\xee\x04\x78\x93\x6b\xc0\x26\xdf\x6c\xa5\xba\x0e\xf3\x59\x71\xe6\xd0\xb4\x4e\x9a\xbf\xb5\xba\x81\x9f\x79\x6e\xca\x99\x13\x6f\xac\xf3\x91\x1b\x8d\x9d\x75\x59\x5c\x70\x04\x12\xd5\x54\x9f\xb8\xc4\xe5\xf9\xd8\x9e\x48\x60\xb3\xe0\x12\x7e\x82\xcb\xfe\x61\x99\xdd\x99\xb6\x4e\xd1\xf4\x99\xd8\xd7\x1b\xd6\x99\x9d\x6a\x13\x4d\x7b\x2d\xce\x5b\xc3\x71\xf7\xd7\xf4\xea\x2d\xbd\x87\xd7\xaa\x6d\xa9\xac\x31\xd3\xbd\x17\xfd\xf1\x57\xe1\xe3\xb5\x2b\xc5\x81\xf8\x9d\x7a\xad\xda\x4e\x80\x85\xf5\xe4\x38\x0c\xa4\xf9\xae\xf3\xdd\x99\xd7\x60\xd7\x6d\x3e\xd0\x23\x84\x73\x52\xf7\x32\xa8\xb3\xeb\xaa\x3f\xf5\xcd\x94\x07\x53\xd2\x52\x2e\x4d\xee\x5b\x38\x10\x80\xb7\x66\xbf\x17\x6f\x54\xf7\x05\x39\x12\x2e\x49\x47\xb9\xf6\x44\x6b\x52\xab\xe1\xf0\xe4\x0d\x39\xe2\xd9\x1a\xf6\x8d\x4f\x56\x27\xdf\xf5\xb4\xce\xc0\xc3\x3c\x22\x48\x9f\x81\xc6\x77\x2f\x93\x56\xe1\x02\x1f\xb1\x5f\x4e\xfe\x06\x9b\x93\x5d\xdf\x6c\x7e\xe2\x02\x3e\x9e\x3b\x18\xf5\x05\xee\xbe\xee\xd6\x2b\x2c\x39\x69\xc7\xc0\x75\xe8\x13\x3b\x6a\x0f\xd5\x9f\xb9\xce\xf1\x25\xf8\x67\x4e\x63\xd7\x94\x8c\x94\x8e\x08\x62\x07\x86\x58\xb6\xe4\x58\x5d\x75\x9f\x68\x9d\xa1\x53\xbb\x32\xcd\x85\x81\xb1\x9a\xcb\x7d\xe5\x5e\xf3\xc6\x16\x09\xaf\xf5\xc8\x6a\x13\x08\x07\x6a\xb0\xb5\xb9\x38\xf1\x58\x61\x4b\x9e\x36\x3e\xeb\x14\x0c\x5e\xbb\xfd\x1e\x2a\x6b\x72\x4c\x3a\xcf\x27\xc0\x8d\x9b\xca\xe8\xb3\xc0\xf1\xc2\x0d\x79\xff\x6a\x8e\x13\xbd\x42\x1f\x9e\x74\xcc\xc1\x31\x54\xef\x2f\xae\x39\xba\x7e\x7d\xe4\x19\xfc\xe0\xe4\xa7\xfb\x2f\xbe\x8f\xdf\xec\x4d\xbf\xcb\xb3\xd5\x0a\x8f\x16\xe7\xe8\x61\x06\x53\xac\xe6\x7a\xc1\xc0\xbc\x19\x00\x5f\x69\x82\x31\x81\xf1\x58\xb8\x58\xa9\x92\xdb\xd1\xb1\x1a\xdd\x8f\x8e\xd5\x70\x13\x3a\x56\x2c\x19\x8e\x6e\x43\xd3\x94\x18\x67\x80\x92\x2e\x9b\x77\xdd\x52\x3e\x4f\xb3\xec\xba\x46\x78\xac\xf1\xae\xb9\x74\x99\x43\xa8\xfe\xc6\x36\x73\x5d\x1b\x1a\xfb\xff\xcc\xdc\xd4\x92\x75\x97\xa6\x4b\x55\x60\x56\x5b\x5f\xb3\xfa\x66\xf3\x5a\x00\xd5\x6f\xfd\xaf\x56\x31\xef\x42\x5a\xba\x23\xa7\xfa\xab\xda\x7d\xe8\xe8\x49\xe6\x89\x06\x59\x16\xfe\x42\xf5\x54\xf2\xc7\x07\xd7\x21\x8d\x54\x5e\xd0\x73\x5a\x0b\xfd\xe6\xdc\x9f\x9b\x69\x49\x1d\x7e\xa0\xfd\x26\xcb\x70\x7b\xfc\xf4\xea\x8b\xdf\xff\xe9\xbb\x38\xf8\x7d\x1c\x7c\x1f\x07\x7f\xf8\x92\x30\x77\x3f\x89\x60\x29\xe8\x44\x02\x21\xfb\x2c\xe3\xd1\x11\x7e\x93\x86\x3d\x3c\x8c\x6f\x9e\xa3\x10\xcf\xf2\xaa\x2a\xd7\xd9\x25\xca\xdd\xc1\x95\xaf\xea\xdb\x74\x92\xcd\x4d\xb6\x7e\x3b\xce\x0d\xb5\xf0\x9f\x85\x6b\x54\xb9\x24\x7c\x28\x87\x30\x4e\xb9\xb2\x24\x1f\x35\x6f\xfd\xcd\xd5\x74\x94\x8d\x2e\xa0\x58\x85\xf1\xb1\xf1\xb5\x2d\xfb\x79\x65\x5e\xa0\x8c\x95\x79\xf1\xbb\x6c\x54\x9b\x42\x0d\x6c\xb8\xac\x9d\x94\xc2\xeb\x3a\x13\x4c\x97\x12\xef\xdc\x01\x68\x79\x51\x90\xd6\xec\xa7\xa5\x34\xe5\x33\xc3\xe2\x40\x0d\x53\x78\xf1\x1b\x9d\x4e\xe4\x52\x2b\x53\x4c\x23\x87\x3b\x1b\xce\x40\xc3\xcf\xc0\x75\x5c\xe6\xe2\xc7\xc3\x64\x4a\x8c\x56\x40\x18\xc0\x34\xc2\x8d\x33\x19\xf6\x0c\xde\x69\x61\x76\x72\x38\xd3\xaa\x7a\xa3\xf6\xf9\x8e\x1a\xc0\x3b\x75\x1e\x8f\xc3\x75\x41\x86\x39\x57\x13\xd7\x53\xe5\xaf\xb7\x20\xac\xf1\xa6\x79\x84\x21\x55\xbc\x96\xf1\x27\x80\x09\xf7\xa0\xc5\xec\xfe\x0b\x8f\xd6\x58\xaa\xc3\x29\xdf\x80\xae\xde\x28\x96\x5b\xe5\x7f\xdf\xcb\x99\x12\xe5\xab\x5b\x97\xc4\x05\x19\x66\xd1\xdf\xe5\xab\x5b\x4c\xc7\x89\x4e\x13\xd6\x20\xeb\x65\xc6\xbf\x82\x6d\xd0\x37\x30\x7c\x07\xa7\x50\xc7\xf2\x58\x2e\x5a\xb3\x2f\x82\x46\x85\x13\x5f\x44\xe2\xb7\x1f\x7f\xc4\xc8\xba\xe6\x0b\x73\xd1\xf3\x94\xb0\x1f\xec\x1b\x2e\x27\x22\x47\x3a\x78\x0d\x9e\x21\x79\x12\x4a\x24\x54\xe8\x1f\xea\x3a\xea\x85\x18\xd6\x8b\xf1\xb7\x7c\x9a\xf9\xf2\x66\xac\x2e\x88\x81\x6e\x3d\xaa\x6c\xa6\x17\xf6\x72\xea\x8f\xeb\x5d\x9e\xe5\x9f\x7e\x5e\x99\x2f\xae\x62\xf9\x2c\xcc\x07\x06\x58\xa9\x80\xb2\x03\xd6\x29\x63\xf5\x66\xef\xb3\x3f\xd4\x8f\xa4\x56\x59\x6c\xd2\x2b\x2e\x0d\x68\x9b\x7b\x81\x85\xdb\xb9\x9e\xeb\x47\x3d\xc1\x44\x81\x71\x0e\x24\x48\x0d\x74\xee\x67\xa8\xff\xf5\xe7\xa7\xb0\xef\xf3\xe7\x6c\x84\xc1\x33\x75\xff\x3f\x1b\x8a\x9a\xab\xd4\xbe\xee\x65\x79\xf5\x22\x23\x55\xe5\xb6\x57\x15\xc9\xd6\x79\xf5\x62\xed\xee\x1f\xdf\x65\xa3\x9e\xc0\xfd\x03\x0a\xb9\xfe\x37\x00\x00\xff\xff\xe4\xa5\xba\xec\xf3\x1c\x00\x00" func runtimePluginsLinterLinterLuaBytes() ([]byte, error) { return bindataRead( @@ -1385,26 +1384,6 @@ func runtimePluginsLinterLinterLua() (*asset, error) { return a, nil } -var _runtimePluginsLinterTestTxt = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x04\xc0\xdb\x09\x04\x21\x0c\x85\xe1\xf7\xad\xe2\x6f\x67\xcb\x08\x78\x30\x42\xd4\xc1\x38\xb7\xee\xe7\x73\x45\x4c\xc2\x46\xb5\xb3\x8a\x7b\xae\x28\x6c\x6f\x49\x4b\xfa\xcb\xd6\xb3\xb1\x51\xf8\xe3\x76\x09\xa3\xb7\xcc\x43\x11\xb8\x96\x7e\x5f\x00\x00\x00\xff\xff\x0e\x36\x10\x56\x40\x00\x00\x00" - -func runtimePluginsLinterTestTxtBytes() ([]byte, error) { - return bindataRead( - _runtimePluginsLinterTestTxt, - "runtime/plugins/linter/test.txt", - ) -} - -func runtimePluginsLinterTestTxt() (*asset, error) { - bytes, err := runtimePluginsLinterTestTxtBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "runtime/plugins/linter/test.txt", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - var _runtimePluginsLiterateReadmeMd = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x64\xcd\x3d\x4e\x05\x31\x0c\xc4\xf1\x3e\xa7\x18\x89\x06\x9a\x4d\xcf\x19\xa0\x82\x0e\x21\x3d\xbf\xc4\x9b\x58\x78\x93\xc8\x71\x84\x96\xd3\x23\xbe\x2a\xea\xff\x6f\x34\x37\x78\x10\x67\x23\x67\x3c\x4a\xb2\x1e\xc2\xd3\x1a\xa3\x9b\x63\xef\x06\x63\xca\xd2\x0a\x2e\x9b\x8a\x5f\xb0\x8b\xf2\xc4\x6e\xfd\xc0\xcb\xc7\xc9\x59\xb2\x50\xfc\xdb\xbf\xde\x56\xf7\x31\xef\x63\x2c\xe2\x75\x5d\xb7\xd4\x8f\xf8\x4f\xdd\x6d\x21\x3c\x57\x99\x18\xba\x8a\x34\xbc\x8b\x2a\x68\x79\x3f\xc8\x25\x91\xea\x89\xcc\xce\xc9\xe1\x95\xbf\x0f\xfd\x1c\x0c\x6a\x19\x55\x4a\x55\x29\xf5\x27\xa5\x6e\xf6\xc5\x94\x5a\x59\x54\x18\xd2\xa6\x64\xfe\x6d\x99\x71\xd5\x9e\xde\xe6\x16\x3e\x03\x00\x00\xff\xff\x46\x7f\x67\x35\xe2\x00\x00\x00" func runtimePluginsLiterateReadmeMdBytes() ([]byte, error) { @@ -6847,7 +6826,6 @@ var _bindata = map[string]func() (*asset, error){ "runtime/plugins/ftoptions/info.json": runtimePluginsFtoptionsInfoJson, "runtime/plugins/linter/info.json": runtimePluginsLinterInfoJson, "runtime/plugins/linter/linter.lua": runtimePluginsLinterLinterLua, - "runtime/plugins/linter/test.txt": runtimePluginsLinterTestTxt, "runtime/plugins/literate/README.md": runtimePluginsLiterateReadmeMd, "runtime/plugins/literate/info.json": runtimePluginsLiterateInfoJson, "runtime/plugins/literate/literate.lua": runtimePluginsLiterateLiterateLua, @@ -7223,7 +7201,6 @@ var _bintree = &bintree{nil, map[string]*bintree{ "linter": &bintree{nil, map[string]*bintree{ "info.json": &bintree{runtimePluginsLinterInfoJson, map[string]*bintree{}}, "linter.lua": &bintree{runtimePluginsLinterLinterLua, map[string]*bintree{}}, - "test.txt": &bintree{runtimePluginsLinterTestTxt, map[string]*bintree{}}, }}, "literate": &bintree{nil, map[string]*bintree{ "README.md": &bintree{runtimePluginsLiterateReadmeMd, map[string]*bintree{}}, diff --git a/runtime/plugins/linter/linter.lua b/runtime/plugins/linter/linter.lua index b4f75943..271f2df5 100644 --- a/runtime/plugins/linter/linter.lua +++ b/runtime/plugins/linter/linter.lua @@ -32,7 +32,10 @@ local linters = {} -- coffset: column offset will be added to the col number returned by the linter -- useful if the linter returns 0-indexed columns -- optional param, default: 0 -function makeLinter(name, filetype, cmd, args, errorformat, os, whitelist, domatch, loffset, coffset) +-- callback: function to call before executing the linter, if it returns +-- false the lint is canceled. The callback is passed the buf. +-- optional param, default: nil +function makeLinter(name, filetype, cmd, args, errorformat, os, whitelist, domatch, loffset, coffset, callback) if linters[name] == nil then linters[name] = {} linters[name].filetype = filetype @@ -44,6 +47,7 @@ function makeLinter(name, filetype, cmd, args, errorformat, os, whitelist, domat linters[name].domatch = domatch or false linters[name].loffset = loffset or 0 linters[name].coffset = coffset or 0 + linters[name].callback = callback or nil end end @@ -118,7 +122,7 @@ function runLinter(buf) end if ftmatch then - lint(buf, k, v.cmd, args, v.errorformat, v.loffset, v.coffset) + lint(buf, k, v.cmd, args, v.errorformat, v.loffset, v.coffset, v.callback) end end end @@ -128,7 +132,13 @@ function onSave(bp) return true end -function lint(buf, linter, cmd, args, errorformat, loff, coff) +function lint(buf, linter, cmd, args, errorformat, loff, coff, callback) + if callback ~= nil then + if callback(buf) then + return + end + end + buf:ClearMessages(linter) shell.JobSpawn(cmd, args, "", "", "linter.onExit", buf, linter, errorformat, loff, coff)