From 64b6c6bd053d9d446503dc51d64c17e1dfcbaf95 Mon Sep 17 00:00:00 2001 From: Sam Washko Date: Wed, 27 Sep 2023 10:59:19 -0700 Subject: [PATCH] add back Modelscan.scanned() --- modelscan/cli.py | 2 +- modelscan/modelscan.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modelscan/cli.py b/modelscan/cli.py index c436819..4b36a61 100644 --- a/modelscan/cli.py +++ b/modelscan/cli.py @@ -96,7 +96,7 @@ def cli( ) # exit code 3 if no supported files were passed - if not modelscan._scanned: + if not modelscan.scanned: return 3 # exit code 2 if scan encountered errors elif modelscan.errors: diff --git a/modelscan/modelscan.py b/modelscan/modelscan.py index 0240fc0..77ab30a 100644 --- a/modelscan/modelscan.py +++ b/modelscan/modelscan.py @@ -156,6 +156,10 @@ def issues(self) -> Issues: def errors(self) -> List[Error]: return self._errors + @property + def scanned(self) -> List[str]: + return self._scanned + @property def skipped(self) -> List[str]: return self._skipped