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:

Constructors

Instance Method Summary

Constructor Detail

def self.new(output = STDOUT) #

Instance Method Detail

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

def finished(sources) #

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


def output : IO::FileDescriptor | IO::Memory #

TODO allow other IOs


def source_finished(source : Source) #

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


def source_started(source : Source) #

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


def started(sources) #

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