Sha256: dab533183a47c67ace04a443c8a642807fdd2f6a933a2e433e37f883fc080f73

Contents?: true

Size: 282 Bytes

Versions: 16

Compression:

Stored size: 282 Bytes

Contents

module Overcommit::Hook::PrePush
  # Runs `brakeman` whenever Ruby/Rails files change.
  #
  # @see http://brakemanscanner.org/
  class Brakeman < Base
    def run
      result = execute(command)
      return :pass if result.success?

      [:fail, result.stdout]
    end
  end
end

Version data entries

16 entries across 14 versions & 2 rubygems

Version Path
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/brakeman.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/brakeman.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/brakeman.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.46.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.45.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.44.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.43.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.42.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.41.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.40.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.39.1 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.39.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.38.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.37.0 lib/overcommit/hook/pre_push/brakeman.rb
overcommit-0.36.0 lib/overcommit/hook/pre_push/brakeman.rb