module Ameba::Formatter::Util
Extended Modules
Direct including types
- Ameba::Formatter::DotFormatter
- Ameba::Formatter::ExplainFormatter
- Ameba::Formatter::GitHubActionsFormatter
Defined in:
ameba/formatter/util.crInstance Method Summary
- #affected_code(issue : Issue, context_lines = 0, max_length = 120, ellipsis = " ...", prompt = "> ")
- #affected_code(code, location, end_location = nil, context_lines = 0, max_length = 120, ellipsis = " ...", prompt = "> ")
- #context(lines, lineno, context_lines = 3, remove_empty = true)
- #deansify(message : String | Nil) : String | Nil
- #pluralize(count : Int, singular : String, plural = "#{singular}s")
- #to_human(span : Time::Span)
- #trim(str, max_length = 120, ellipsis = " ...")
Instance Method Detail
def affected_code(issue : Issue, context_lines = 0, max_length = 120, ellipsis = " ...", prompt = "> ")
#
def affected_code(code, location, end_location = nil, context_lines = 0, max_length = 120, ellipsis = " ...", prompt = "> ")
#