lib/brakeman/options.rb in brakeman-4.10.1 vs lib/brakeman/options.rb in brakeman-5.0.0.pre1

- old
+ new

@@ -164,10 +164,14 @@ opts.on "--only-files file1,path2,etc", Array, "Process only these files/directories. Directories are application relative and must end in \"#{File::SEPARATOR}\"" do |files| options[:only_files] ||= Set.new options[:only_files].merge files end + opts.on "--[no-]skip-vendor", "Skip processing vendor directory (Default)" do |skip| + options[:skip_vendor] = skip + end + opts.on "--skip-libs", "Skip processing lib directory" do options[:skip_libs] = true end opts.on "--add-libs-path path1,path2,etc", Array, "An application relative lib directory (ex. app/mailers) to process" do |paths| @@ -227,10 +231,10 @@ options[:debug] = true end opts.on "-f", "--format TYPE", - [:pdf, :text, :html, :csv, :tabs, :json, :markdown, :codeclimate, :cc, :plain, :table, :junit, :sarif], + [:pdf, :text, :html, :csv, :tabs, :json, :markdown, :codeclimate, :cc, :plain, :table, :junit, :sarif, :sonar], "Specify output formats. Default is text" do |type| type = "s" if type == :text options[:output_format] = ("to_" << type.to_s).to_sym end