Sha256: e661253b98867d7ec77fa986ad2a7ac0ddaaa332060a4092e224010a675d93c6
Contents?: true
Size: 270 Bytes
Versions: 46
Compression:
Stored size: 270 Bytes
Contents
class GetIgnoredViolation IGNORE_REGEXP = />*\s*danger\s*:\s*ignore\s*"(?<error>[^"]*)"/i.freeze def initialize(body) @body = body end def call return [] unless body body.chomp.scan(IGNORE_REGEXP).flatten end private attr_reader :body end
Version data entries
46 entries across 46 versions & 2 rubygems