From eaa319ec579a87dbc5db34f9aa915c5106d27116 Mon Sep 17 00:00:00 2001 From: Russell Harmon Date: Sat, 18 Jun 2016 15:05:39 -0700 Subject: [PATCH] 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. --- ShellCheck/Formatter/JSON.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/ShellCheck/Formatter/JSON.hs b/ShellCheck/Formatter/JSON.hs index cd1a054..7225165 100644 --- a/ShellCheck/Formatter/JSON.hs +++ b/ShellCheck/Formatter/JSON.hs @@ -40,6 +40,7 @@ instance JSON (PositionedComment) where showJSON comment@(PositionedComment start end (Comment level code string)) = makeObj [ ("file", showJSON $ posFile start), ("line", showJSON $ posLine start), + ("endLine", showJSON $ posLine end), ("column", showJSON $ posColumn start), ("endColumn", showJSON $ posColumn end), ("level", showJSON $ severityText comment),