Sha256: 5683eabfa0e54f41a8a2faf8ecf089f31dfa24904df01c6b3d164c55f9eccd4a

Contents?: true

Size: 389 Bytes

Versions: 31

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require_relative 'simple_warning_formatter'

module Reek
  module Report
    #
    # Formatter that adds a link to the docs to the basic message from
    # SimpleWarningFormatter.
    #
    class DocumentationLinkWarningFormatter < SimpleWarningFormatter
      def format(warning)
        "#{super} [#{warning.explanatory_link}]"
      end
    end
  end
end

Version data entries

31 entries across 29 versions & 2 rubygems

Version Path
reek-5.3.1 lib/reek/report/documentation_link_warning_formatter.rb
reek-5.3.0 lib/reek/report/documentation_link_warning_formatter.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/documentation_link_warning_formatter.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/documentation_link_warning_formatter.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/documentation_link_warning_formatter.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/report/documentation_link_warning_formatter.rb
reek-5.2.0 lib/reek/report/documentation_link_warning_formatter.rb
reek-5.1.0 lib/reek/report/documentation_link_warning_formatter.rb
reek-5.0.2 lib/reek/report/documentation_link_warning_formatter.rb
reek-5.0.1 lib/reek/report/documentation_link_warning_formatter.rb
reek-5.0.0 lib/reek/report/documentation_link_warning_formatter.rb