class Ameba::Formatter::BaseFormatter

Overview

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.

Direct Known Subclasses

Defined in:

ameba/formatter/base_formatter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(output : IO = STDOUT) #

[View source]

Instance Method Detail

def config : Hash(Symbol, Bool | String) #

[View source]
def finished(sources) #

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


[View source]
def output : IO::FileDescriptor | IO::Memory #

TODO allow other IOs


[View source]
def source_finished(source : Source) #

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


[View source]
def source_started(source : Source) #

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


[View source]
def started(sources) #

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


[View source]