Skip to content

Commit

Permalink
Update end_lnum and end_col for clj-kondo
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdank authored Nov 26, 2024
1 parent 6b46370 commit fa653ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lint/linters/clj-kondo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ return {
table.insert(diagnostics, {
lnum = finding.row - 1,
col = finding.col - 1,
end_lnum = finding.row - 1,
end_col = finding.col - 1,
end_lnum = (finding["end-row"] or finding.row) - 1,
end_col = (finding["end-col"] or finding.col) - 1,
severity = assert(severities[finding.level], 'missing mapping for severity ' .. finding.level),
message = finding.message,
})
Expand Down

0 comments on commit fa653ff

Please sign in to comment.