class

Ameba::Formatter::BaseFormatter

Inherits Reference < Object

A base formatter for all formatters. It uses output IO to report results and also implements stub methods for callbacks in Ameba::Runner#run method.

Constructors

new(output : IO = STDOUT)
Source

Instance methods

config
Source
finished(sources) : Nil

Callback that indicates when inspection is finished. A list of inspected sources is passed as an argument.

Source
output

TODO: allow other IOs

Source
source_finished(source : Source) : Nil

Callback that indicates when source inspection is finished. A corresponding source is passed as an argument.

WARNING: This method needs to be MT safe

Source
source_started(source : Source) : Nil

Callback that indicates when source inspection is started. A corresponding source is passed as an argument.

WARNING: This method needs to be MT safe

Source
started(sources) : Nil

Callback that indicates when inspecting is started. A list of sources to inspect is passed as an argument.

Source