Class: Reek::Report::DocumentationLinkWarningFormatter

Inherits:
SimpleWarningFormatter show all
Defined in:
lib/reek/report/documentation_link_warning_formatter.rb

Overview

Formatter that adds a link to the docs to the basic message from SimpleWarningFormatter.

Instance Attribute Summary

Attributes inherited from SimpleWarningFormatter

#location_formatter

Instance Method Summary collapse

Methods inherited from SimpleWarningFormatter

#format_list, #initialize

Constructor Details

This class inherits a constructor from Reek::Report::SimpleWarningFormatter

Instance Method Details

#format(warning) ⇒ Object



12
13
14
# File 'lib/reek/report/documentation_link_warning_formatter.rb', line 12

def format(warning)
  "#{super} [#{warning.explanatory_link}]"
end