class Overcommit::Hook::PrePush::Brakeman

Runs ‘brakeman` whenever Ruby/Rails files change.

@see brakemanscanner.org/

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/pre_push/brakeman.rb, line 8
def run
  result = execute(command)
  return :pass if result.success?

  [:fail, result.stdout]
end