class Ameba::Formatter::TODOFormatter
- Ameba::Formatter::TODOFormatter
- Ameba::Formatter::DotFormatter
- Ameba::Formatter::BaseFormatter
- Reference
- Object
Overview
A formatter that creates a todo config. Basically, it takes all issues reported and disables corresponding rules or excludes failed sources from these rules.
Defined in:
ameba/formatter/todo_formatter.crConstructors
Instance Method Summary
-
#finished(sources)
Reports a message when inspection is finished.
Instance methods inherited from class Ameba::Formatter::DotFormatter
finished(sources)
finished,
source_finished(source : Source)
source_finished,
started(sources)
started
Instance methods inherited from module Ameba::Formatter::Util
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 = "> ") affected_code, context(lines, lineno, context_lines = 3, remove_empty = true) context, deansify(message : String | Nil) : String | Nil deansify, trim(str, max_length = 120, ellipsis = " ...") trim
Instance methods inherited from class Ameba::Formatter::BaseFormatter
config : Hash(Symbol, Bool | String)
config,
finished(sources)
finished,
output : IO::FileDescriptor | IO::Memory
output,
source_finished(source : Source)
source_finished,
source_started(source : Source)
source_started,
started(sources)
started
Constructor methods inherited from class Ameba::Formatter::BaseFormatter
new(output : IO = STDOUT)
new
Constructor Detail
Instance Method Detail
def finished(sources)
#
Description copied from class Ameba::Formatter::DotFormatter
Reports a message when inspection is finished.