lib/brakeman/options.rb in brakeman-2.6.3 vs lib/brakeman/options.rb in brakeman-3.0.0
- old
+ new
@@ -78,10 +78,14 @@
opts.on "--ignore-protected", "Consider models with attr_protected safe" do
options[:ignore_attr_protected] = true
end
+ opts.on "--[no-]index-libs", "Add libraries to call index (default)" do |index|
+ options[:index_libs] = index
+ end
+
opts.on "--interprocedural", "Process method calls to known methods" do
options[:interprocedural] = true
end
opts.on "--no-branching", "Disable flow sensitivity on conditionals" do
@@ -198,11 +202,11 @@
opts.on "-o", "--output FILE", "Specify files for output. Defaults to stdout. Multiple '-o's allowed" do |file|
options[:output_files] ||= []
options[:output_files].push(file)
end
- opts.on "--separate-models", "Warn on each model without attr_accessible" do
- options[:collapse_mass_assignment] = false
+ opts.on "--[no-]separate-models", "Warn on each model without attr_accessible (Default)" do |separate|
+ options[:collapse_mass_assignment] = !separate
end
opts.on "--summary", "Only output summary of warnings" do
options[:summary_only] = true
end