Sha256: 4e52d0d72a28d0ce317b6eaa2e358c381fc0148d0fc039dcc5f8fe08e1bb7a18
Contents?: true
Size: 557 Bytes
Versions: 6
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 rails security 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
6 entries across 6 versions & 1 rubygems