Sha256: 48f134acd88e9a55ed904773aa595c0f9e95a215ee1b9ba202dbd859364f74c6

Contents?: true

Size: 487 Bytes

Versions: 47

Compression:

Stored size: 487 Bytes

Contents

namespace :brakeman do
  desc 'Run Brakeman'
  task :run, :output_files do |_t, args|
    require 'brakeman'

    files = args[:output_files].split(' ') if args[:output_files]
    Brakeman.run app_path: '.', output_files: files, print_report: true
  end

  desc 'Check your code with Brakeman'
  task :check do
    require 'brakeman'
    result = Brakeman.run app_path: '.', print_report: true
    exit Brakeman::Warnings_Found_Exit_Code unless result.filtered_warnings.empty?
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
active_scaffold-3.7.11 lib/tasks/brakeman.rake
active_scaffold-3.7.10 lib/tasks/brakeman.rake
active_scaffold-3.7.8 lib/tasks/brakeman.rake
active_scaffold-3.7.7 lib/tasks/brakeman.rake
active_scaffold-3.7.6 lib/tasks/brakeman.rake
active_scaffold-3.7.5 lib/tasks/brakeman.rake
active_scaffold-3.7.2 lib/tasks/brakeman.rake
active_scaffold-3.7.1 lib/tasks/brakeman.rake
active_scaffold-3.7.0 lib/tasks/brakeman.rake
active_scaffold-3.6.20 lib/tasks/brakeman.rake
active_scaffold-3.6.19 lib/tasks/brakeman.rake
active_scaffold-3.6.17 lib/tasks/brakeman.rake
active_scaffold-3.6.15 lib/tasks/brakeman.rake
active_scaffold-3.6.14 lib/tasks/brakeman.rake
active_scaffold-3.6.13 lib/tasks/brakeman.rake
active_scaffold-3.6.12 lib/tasks/brakeman.rake
active_scaffold-3.6.11.1 lib/tasks/brakeman.rake
active_scaffold-3.6.11 lib/tasks/brakeman.rake
active_scaffold-3.6.10 lib/tasks/brakeman.rake
active_scaffold-3.6.9 lib/tasks/brakeman.rake