Skip to content

Commit

Permalink
Scan app/jobs/
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Mar 20, 2018
1 parent 11cefc7 commit 05105be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/brakeman/app_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def layout_exists?(name)
def lib_paths
@lib_files ||= find_paths("lib").reject { |path| path.include? "/generators/" or path.include? "lib/tasks/" or path.include? "lib/templates/" } +
find_additional_lib_paths +
find_helper_paths
find_helper_paths +
find_job_paths
end

private
Expand All @@ -121,6 +122,10 @@ def find_helper_paths
find_paths "app/helpers"
end

def find_job_paths
find_paths "app/jobs"
end

def find_additional_lib_paths
@additional_libs_path.collect{ |path| find_paths path }.flatten
end
Expand Down

0 comments on commit 05105be

Please sign in to comment.