class GetIgnoredViolation
Constants
- IGNORE_REGEXP
Attributes
body[R]
Public Class Methods
new(body)
click to toggle source
# File lib/danger/request_sources/support/get_ignored_violation.rb, line 4 def initialize(body) @body = body end
Public Instance Methods
call()
click to toggle source
# File lib/danger/request_sources/support/get_ignored_violation.rb, line 8 def call return [] unless body body.chomp.scan(IGNORE_REGEXP).flatten end