Skip to content

Commit

Permalink
move where verification is done
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed Aug 7, 2024
1 parent 05c21fb commit 55064c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tf_authoritative_scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def run(self, paths):
results = []
authoritative_files_found = 0

verify_paths(paths)
call_result = self.check_paths_for_authoritative_resources(paths)
results = call_result.get("results")
total_files = call_result.get("files_scanned")
Expand Down Expand Up @@ -224,6 +225,4 @@ def main():
scanner = TFAuthoritativeScanner(args.include_dotdirs, args.verbose)
if not args.no_ascii_art:
scanner.print_tfas_banner()
# TODO: move this to scanner.run()
verify_paths(args.paths)
scanner.run(args.paths)

0 comments on commit 55064c7

Please sign in to comment.