diff --git a/modelscan/modelscan.py b/modelscan/modelscan.py index 861f569..e177578 100644 --- a/modelscan/modelscan.py +++ b/modelscan/modelscan.py @@ -234,6 +234,9 @@ def _generate_results(self) -> Dict[str, Any]: issue["source"] = str( Path(issue["source"]).relative_to(Path(absolute_path)) ) + else: + report["issues"] = [] + all_errors = [] if self._errors: for error in self._errors: