Class: GithubIntegration::SourceCell

Inherits:
Object
  • Object
show all
Defined in:
action/lib/github_integration.rb

Overview

Renders the source column for grouped structured warning details.

Instance Method Summary collapse

Constructor Details

#initialize(sources, formatter) ⇒ SourceCell

Returns a new instance of SourceCell.



197
198
199
200
# File 'action/lib/github_integration.rb', line 197

def initialize(sources, formatter)
  @sources = sources
  @formatter = formatter
end

Instance Method Details

#markdownObject



202
203
204
205
206
207
# File 'action/lib/github_integration.rb', line 202

def markdown
  return "Xcode project" if source_count.zero?
  return formatted_sources.first if source_count == 1

  "#{source_count} manifests<br>#{formatted_sources.join('<br>')}"
end