Sha256: c73dd01019c97f384dcf0b4e6d355c2e428690302662c2992a4b954cb6f84940
Contents?: true
Size: 263 Bytes
Versions: 121
Compression:
Stored size: 263 Bytes
Contents
class GetIgnoredViolation IGNORE_REGEXP = />*\s*danger\s*:\s*ignore\s*"(?<error>[^"]*)"/i 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
121 entries across 121 versions & 1 rubygems
Version | Path |
---|---|
danger-3.6.0 | lib/danger/request_sources/support/get_ignored_violation.rb |