Skip to content

Commit

Permalink
Add the jq linter
Browse files Browse the repository at this point in the history
  • Loading branch information
itaranto authored and mfussenegger committed Sep 14, 2023
1 parent 73682da commit 12517fb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/lint/linters/jq.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
return {
cmd = "jq",
stdin = true,
stream = "stderr",
ignore_exitcode = true,
parser = require("lint.parser").from_pattern(
"^(.+): (.+) at line (%d+), column (%d+)$",
{ "code", "message", "lnum", "col" },
nil,
nil,
{ lnum_offset = -1 }
),
}

0 comments on commit 12517fb

Please sign in to comment.