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