Skip to content

Commit

Permalink
add scanned files to results report
Browse files Browse the repository at this point in the history
  • Loading branch information
swashko committed Jan 19, 2024
1 parent 3ea3473 commit 4e3e6d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modelscan/modelscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ def _generate_results(self) -> Dict[str, Any]:

report["errors"] = [str(error) for index, error in enumerate(self._errors)]

report["scanned"] = {"total_scanned": len(self._scanned)}
report["scanned"]["scanned_files"] = [
str(file_name) for file_name in self._scanned
]

report["skipped"] = {"total_skipped": len(self._skipped)}
report["skipped"]["skipped_files"] = [
str(file_name) for file_name in self._skipped
Expand Down

0 comments on commit 4e3e6d6

Please sign in to comment.