Initial commit
This commit is contained in:
commit
209ba130c0
4852 changed files with 1517959 additions and 0 deletions
28
.config/lite-xl/plugins/lintplus/linters/luacheck.lua
Normal file
28
.config/lite-xl/plugins/lintplus/linters/luacheck.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
-- luacheck plugin for lint+
|
||||
|
||||
--- CONFIG ---
|
||||
|
||||
-- config.lint.luacheck_args: table[string]
|
||||
-- passes the specified arguments to luacheck
|
||||
|
||||
--- IMPLEMENTATION ---
|
||||
|
||||
local lintplus = require "plugins.lintplus"
|
||||
|
||||
lintplus.add("luacheck") {
|
||||
filename = "%.lua$",
|
||||
procedure = {
|
||||
command = lintplus.args_command(
|
||||
{ "luacheck",
|
||||
lintplus.args,
|
||||
"--formatter",
|
||||
"visual_studio",
|
||||
lintplus.filename },
|
||||
"luacheck_args"
|
||||
),
|
||||
interpreter = lintplus.interpreter {
|
||||
warning = "(.-)%((%d+),(%d+)%) : warning .-: (.+)",
|
||||
error = "(.-)%((%d+),(%d+)%) : error .-: (.+)",
|
||||
}
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue