canvas-lms/script/brakeman

17 lines
385 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
require_relative "linter"
linter_options = {
linter_name: "brakeman",
file_regex: %r{^config/brakeman.yml$|\.rb$},
format: "brakeman",
command: "bundle exec brakeman -c config/brakeman.yml --quiet --format json",
append_files_to_command: false,
severe_anywhere: true
}
brakeman = Linter.new(linter_options)
brakeman.run