Initial commit
This commit is contained in:
commit
209ba130c0
4852 changed files with 1517959 additions and 0 deletions
42
.config/lite-xl/plugins/lintplus/linters/shellcheck.lua
Normal file
42
.config/lite-xl/plugins/lintplus/linters/shellcheck.lua
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
-- shellcheck plugin for lint+
|
||||
|
||||
--- INSTALLATION ---
|
||||
-- In order to use this linter, please ensure you have the shellcheck binary
|
||||
-- in your path. For installation notes please see
|
||||
-- https://github.com/koalaman/shellcheck#user-content-installing
|
||||
|
||||
--- CONFIG ---
|
||||
|
||||
-- config.lint.shellcheck_args: table[string]
|
||||
-- passes the given arguments to shellcheck.
|
||||
|
||||
--- IMPLEMENTATION ---
|
||||
|
||||
local lintplus = require "plugins.lintplus"
|
||||
|
||||
lintplus.add("shellcheck") {
|
||||
filename = "%.sh$",
|
||||
syntax = {
|
||||
"Shell script",
|
||||
"shellscript",
|
||||
"bashscript",
|
||||
"Bash script",
|
||||
"Bash",
|
||||
"bash",
|
||||
},
|
||||
procedure = {
|
||||
command = lintplus.args_command(
|
||||
{ "shellcheck",
|
||||
"--format=gcc",
|
||||
lintplus.args,
|
||||
lintplus.filename
|
||||
},
|
||||
"shellcheck_args"
|
||||
),
|
||||
interpreter = lintplus.interpreter {
|
||||
info = "(.*):(%d+):(%d+): note: (.+)",
|
||||
error = "(.*):(%d+):(%d+): error: (.+)",
|
||||
warning = "(.*):(%d+):(%d+): warning: (.+)",
|
||||
}
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue