Class: Reek::Report::GithubReport

Inherits:
BaseReport show all
Defined in:
lib/reek/report/github_report.rb

Overview

Displays smells as GitHub Workflow commands.

Defined Under Namespace

Classes: WorkflowCommand

Constant Summary

Constants inherited from BaseReport

BaseReport::NO_WARNINGS_COLOR, BaseReport::WARNINGS_COLOR

Instance Attribute Summary

Attributes inherited from BaseReport

#examiners, #heading_formatter, #progress_formatter, #sort_by_issue_count, #warning_formatter

Instance Method Summary collapse

Methods inherited from BaseReport

#add_examiner, #initialize, #smells, #smells?

Constructor Details

This class inherits a constructor from Reek::Report::BaseReport

Instance Method Details

#show(out = $stdout) ⇒ Object



13
14
15
# File 'lib/reek/report/github_report.rb', line 13

def show(out = $stdout)
  out.print(workflow_commands.join)
end

#workflow_commandsObject (private)



19
20
21
22
23
# File 'lib/reek/report/github_report.rb', line 19

def workflow_commands
  smells.map do |smell|
    WorkflowCommand.new(smell)
  end
end