From 4e3e6d6e5ca837152944f61daf40774a37ace7a6 Mon Sep 17 00:00:00 2001 From: Sam Washko Date: Fri, 19 Jan 2024 14:54:30 -0800 Subject: [PATCH] add scanned files to results report --- modelscan/modelscan.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modelscan/modelscan.py b/modelscan/modelscan.py index 00295e0..9100784 100644 --- a/modelscan/modelscan.py +++ b/modelscan/modelscan.py @@ -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