Skip to content

Commit

Permalink
Merge pull request #1896 from presidentbeef/add_timing_for_finding_files
Browse files Browse the repository at this point in the history
Add explicit step for finding files
  • Loading branch information
presidentbeef authored Dec 29, 2024
2 parents aab5f79 + fec803c commit fba1648
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/brakeman/scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fba1648

Please # to comment.