Sha256: e3a0f742d1737d6161d09955d42748875ee28b9667e83f60f686b167e1820e30
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
module Warder # responsible for run rails security validation class RailsSecurityRunner < Runner CLI_OPTION = 'i' CLI_FULL_OPTION = 'rails-security' DESCRIPTION = 'Run magick numbers validation' COMMAND_NAME = 'brakeman' FAILURE_REGEXP = /^\| Security Warnings \| (\d)+/ PRINTABLE_REGEXP = /^(\+|\||View Warnings:)/ private def command_with_options path = @options.files.split(' ').first "#{COMMAND_NAME} -q -p #{path}" end def printable?(line) PRINTABLE_REGEXP.match(line) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
warder-0.1.3 | lib/warder/rails_security_runner.rb |