Skip to content

Commit

Permalink
add support for different severity levels
Browse files Browse the repository at this point in the history
  • Loading branch information
EPMatt committed Nov 11, 2020
1 parent fab600b commit 202b900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
else:
error.attrib['column'] = str(0)

error.attrib['severity'] = 'error'
if 'severity' in issue.attrib:
error.attrib['severity'] = issue.attrib['severity']
else:
error.attrib['severity'] = 'info'

issueId = issue.attrib['id']
message = issue.attrib['message']
Expand Down

0 comments on commit 202b900

Please sign in to comment.