Skip to content

Commit

Permalink
Fixing offset issue to be imported in sonar (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanKergoat authored Jul 26, 2022
1 parent 36acc21 commit 099adc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion njsscan/formatters/sonarqube.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_sonarqube_issue(njsscan_issue):
'startLine': file['match_lines'][0],
'endLine': file['match_lines'][1],
'startColumn': file['match_position'][0],
'endColumn': file['match_position'][1],
'endColumn': file['match_position'][1] - 1,
}
location = {
'message': issue_data['description'],
Expand Down

0 comments on commit 099adc1

Please sign in to comment.