mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-21 01:32:39 +08:00
Emit the end line in the JSON.
This handles the case where the end line is not on the same line as the start line when using the new end column feature.
This commit is contained in:
@@ -40,6 +40,7 @@ instance JSON (PositionedComment) where
|
|||||||
showJSON comment@(PositionedComment start end (Comment level code string)) = makeObj [
|
showJSON comment@(PositionedComment start end (Comment level code string)) = makeObj [
|
||||||
("file", showJSON $ posFile start),
|
("file", showJSON $ posFile start),
|
||||||
("line", showJSON $ posLine start),
|
("line", showJSON $ posLine start),
|
||||||
|
("endLine", showJSON $ posLine end),
|
||||||
("column", showJSON $ posColumn start),
|
("column", showJSON $ posColumn start),
|
||||||
("endColumn", showJSON $ posColumn end),
|
("endColumn", showJSON $ posColumn end),
|
||||||
("level", showJSON $ severityText comment),
|
("level", showJSON $ severityText comment),
|
||||||
|
Reference in New Issue
Block a user