diff --git a/to-rdjsonl.jq b/to-rdjsonl.jq index ea9e5da..9622346 100644 --- a/to-rdjsonl.jq +++ b/to-rdjsonl.jq @@ -5,15 +5,15 @@ if .type == "typo" then "location": { "path": .path, "range": { - "start": { "line": .line_num, "column": .byte_offset + 1 }, - "end": { "line": .line_num, "column": (.byte_offset + (.typo | length) + 1) } + "start": { "line": .line_num, "column": (.byte_offset + 1) }, + "end": { "line": .line_num, "column": (.byte_offset + (.typo | length)) } } }, "suggestions": .corrections | map({ "text": ., "range": { - "start": { "line": $item.line_num, "column": $item.byte_offset + 1 }, - "end": { "line": $item.line_num, "column": ($item.byte_offset + ($item.typo | length) + 1) } + "start": { "line": $item.line_num, "column": ($item.byte_offset + 1) }, + "end": { "line": $item.line_num, "column": ($item.byte_offset + ($item.typo | length)) } } }) }