Skip to content

Commit

Permalink
Updated scan result collection
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrinkiani committed Feb 22, 2024
1 parent 6491646 commit 3a6b26b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modelscan/modelscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,18 @@ def _scan_source(
)

if scan_results is not None:
scanned = True
logger.info(f"Scanning {source} using {scanner.full_name()} model scan")
if scan_results.errors:
self._errors.extend(scan_results.errors)
elif scan_results.issues:
self._scanned.append(str(source))
self._issues.add_issues(scan_results.issues)

elif scan_results.skipped:
self._skipped.extend(scan_results.skipped)
else:
self._scanned.append(str(source))
self._issues.add_issues(scan_results.issues)
scanned = True

return scanned

Expand Down

0 comments on commit 3a6b26b

Please sign in to comment.