From fec803c7d97bdf5717ed8fdef6e8b805826a4ecc Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Thu, 26 Dec 2024 18:46:53 -0700 Subject: [PATCH] Add explicit step for finding files --- lib/brakeman/scanner.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/brakeman/scanner.rb b/lib/brakeman/scanner.rb index 50b8a6ead..d42fc9e8f 100644 --- a/lib/brakeman/scanner.rb +++ b/lib/brakeman/scanner.rb @@ -90,8 +90,10 @@ def process(ruby_paths: nil, template_paths: nil) # Otherwise, parse everything normally. # astfiles = nil - ruby_paths ||= tracker.app_tree.ruby_file_paths - template_paths ||= tracker.app_tree.template_paths + process_step 'Finding files' do + ruby_paths ||= tracker.app_tree.ruby_file_paths + template_paths ||= tracker.app_tree.template_paths + end process_step 'Parsing files' do astfiles = parse_files(ruby_paths: ruby_paths, template_paths: template_paths)