Sha256: bc32bac0aabe2a5c10b7ecdfe26605f70ed9bd0419d13615e2663a28ac383de2
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
#!/usr/bin/env ruby require 'json' require 'tins/xt' require 'tins/go' include Tins::GO opt = go 'c' if opt['c'] brakeman = `bundle exec which brakeman`.full? or fail "cannot find brakeman in path" system *%w'bundle exec brakeman -q -o .brakeman.json' or fail "calling brakeman failed" end results = JSON File.read('.brakeman.json'), object_class: JSON::GenericObject for error in results.errors puts error.location, "Error #{error.error.inspect}" end for warning in results.warnings puts "#{warning.file}:#{warning.line}", "#{warning.warning_type} (#{warning.confidence}) #{warning.message.inspect}", warning.code end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
utils-0.0.89 | bin/brakeman2err |