提交 db27423a 编写于 作者: J Justin Collins

Brakeman#rescan returns true if file change mattered

上级 d7bcf404
......@@ -255,10 +255,14 @@ module Brakeman
def self.rescan tracker, files
scanner = Scanner.new tracker.options, tracker.processor
changed = false
files.each do |path|
scanner.rescan_file File.expand_path(path)
if scanner.rescan_file File.expand_path(path)
changed = true
end
end
tracker
changed
end
end
......@@ -387,10 +387,12 @@ class Brakeman::Scanner
when :gemfile
process_gems
else
raise "Cannot scan file: #{path}"
return false #Nothing to do, file hopefully does not need to be rescanned
end
index_call_sites
true
end
def rescan_controller path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册