Skip to content

Commit

Permalink
Use value offset in report sorting (#468)
Browse files Browse the repository at this point in the history
* use round up to 5 digits for ML probability

* use the round in test only

* style

* value_end is used too in sorting
  • Loading branch information
babenek authored Dec 1, 2023
1 parent 75f7803 commit 841679e
Show file tree
Hide file tree
Showing 6 changed files with 729 additions and 724 deletions.
3 changes: 2 additions & 1 deletion credsweeper/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ def export_results(self) -> None:
x.line_data_list[0].line_num, #
x.severity, #
x.rule_name, #
x.line_data_list[0].value #
x.line_data_list[0].value_start, #
x.line_data_list[0].value_end #
))

if self.json_filename:
Expand Down
Loading

0 comments on commit 841679e

Please sign in to comment.