lib/brakeman/rescanner.rb in brakeman-lib-5.4.0 vs lib/brakeman/rescanner.rb in brakeman-lib-5.4.1
- old
+ new
@@ -4,11 +4,11 @@
#Class for rescanning changed files after an initial scan
class Brakeman::Rescanner < Brakeman::Scanner
include Brakeman::Util
KNOWN_TEMPLATE_EXTENSIONS = Brakeman::TemplateParser::KNOWN_TEMPLATE_EXTENSIONS
- SCAN_ORDER = [:config, :gemfile, :initializer, :lib, :routes, :template,
+ SCAN_ORDER = [:gemfile, :config, :initializer, :lib, :routes, :template,
:model, :controller]
#Create new Rescanner to scan changed files
def initialize options, processor, changed_files
super(options, processor)
@@ -329,9 +329,11 @@
when /\/config\/initializers/
:initializer
when /config\/routes\.rb/
:routes
when /\/config\/.+\.(rb|yml)/
+ :config
+ when /\.ruby-version/
:config
when /Gemfile|gems\./
:gemfile
else
:unknown