Sha256: 05fcb146cb117f8a2f2b54d0a9045b5e279bf5da18baefb51f9a47f499d65f5e
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true require_relative 'base_error' module Reek module Errors # Gets raised for old-style comment configuration format. class LegacyCommentSeparatorError < BaseError MESSAGE = <<-MESSAGE.freeze Error: You are using the legacy configuration format (including three colons) to configure Reek in one your source code comments. The source is '%<source>s' and the comment belongs to the expression starting in line %<line>d. Here's the original comment: %<comment>s Please see the Reek docs for information on how to configure Reek via source code comments: #{DocumentationLink.build('Smell Suppression')} Update the offensive comment and re-run Reek. MESSAGE def initialize(source:, line:, original_comment:) message = format(MESSAGE, source: source, line: line, comment: original_comment) super(message) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reek-6.4.0 | lib/reek/errors/legacy_comment_separator_error.rb |
reek-6.3.0 | lib/reek/errors/legacy_comment_separator_error.rb |
reek-6.2.0 | lib/reek/errors/legacy_comment_separator_error.rb |