Skip to content

Commit

Permalink
sqruff: include error code in diagnostic (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuslarsen authored Jan 21, 2025
1 parent 3d5190d commit 789b7ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/lint/linters/sqruff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ return {
return {}
end


local decoded = vim.json.decode(output)
local diagnostics = {}
local messages = decoded["<string>"]
Expand All @@ -29,7 +28,7 @@ return {
col = msg.range.start.character - 1,
end_col = msg.range["end"].character - 1,
message = msg.message,
-- code not provided: https://github.com/quarylabs/sqruff/issues/1219
code = msg.code,
source = msg.source,
severity = assert(severities[msg.severity], "missing mapping for severity " .. msg.severity),
})
Expand Down

0 comments on commit 789b7ad

Please sign in to comment.