Skip to content

Commit

Permalink
conditionally exclude start and end column
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Jul 14, 2020
1 parent 538a51f commit a75df70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ parse_json() {
path: (if .file | startswith("./") then .file[2:] else .file end),
start_line: .line,
end_line: .endLine,
start_column: (if .line != .endLine then null else .column end),
end_column: (if .line != .endLine then null else .endColumn end),
annotation_level: (if .level == "info" or .level == "style" then "notice" elif .level == "error" then "failure" else .level end),
message: .message
})
} + (if .line == .endLine then {start_column: .column, end_column: .endColumn} else {} end))
}
}'
}
Expand Down

0 comments on commit a75df70

Please sign in to comment.