Skip to content

Commit

Permalink
add back Modelscan.scanned()
Browse files Browse the repository at this point in the history
  • Loading branch information
swashko committed Sep 27, 2023
1 parent e352063 commit 64b6c6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modelscan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions modelscan/modelscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 64b6c6b

Please sign in to comment.