Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
danger / lib / danger / request_sources / support / get_ignored_violation.rb
Size: Mime:
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