class Reek::Report::GithubReport::WorkflowCommand
Represents a smell as a GitHub Workflow command.
Public Class Methods
Source
# File lib/reek/report/github_report.rb, line 27 def initialize(smell) @smell = smell end
Public Instance Methods
Source
# File lib/reek/report/github_report.rb, line 31 def to_s format( "::warning file=%<file>s,line=%<line>d::%<message>s\n", file: file, line: line, message: message) end
Private Instance Methods
Source
# File lib/reek/report/github_report.rb, line 49 def message @smell.base_message.gsub('%', '%25').gsub("\r", '%0D').gsub("\n", '%0A') end