Skip to content

Commit

Permalink
Add Scanned Files to Results (#88)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Morgan <[email protected]>
  • Loading branch information
swashko and seanpmorgan authored Jan 22, 2024
1 parent 8dfa996 commit 4f760ac
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 4f760ac

Please sign in to comment.