Skip to content

Commit

Permalink
Fix SARIF report issue locations (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Jun 24, 2024
1 parent 552d36f commit 1d34668
Show file tree
Hide file tree
Showing 2 changed files with 632 additions and 633 deletions.
9 changes: 4 additions & 5 deletions aderyn_core/src/report/sarif_printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,10 @@ fn create_sarif_locations(issue: &Issue) -> Vec<Location> {
context_region: None,
properties: None,
region: Some(Region {
char_offset: Some(offset.parse().unwrap()),
char_length: Some(len.parse().unwrap()),

byte_length: None,
byte_offset: None,
char_offset: None,
char_length: None,
byte_length: Some(len.parse().unwrap()),
byte_offset: Some(offset.parse().unwrap()),
end_column: None,
end_line: None,
message: None,
Expand Down
Loading

0 comments on commit 1d34668

Please sign in to comment.