Sha256: 4b921aa96211c8db03595b10849d4e24961eef83b713dafec8d0c198f07ee660
Contents?: true
Size: 603 Bytes
Versions: 57
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module RuboCop class ConfigObsoletion # Encapsulation of a ConfigObsoletion rule for changing a parameter # @api private class ChangedParameter < ParameterRule BASE_MESSAGE = 'obsolete parameter `%<parameter>s` (for `%<cop>s`) found in %<path>s' def message base = format(BASE_MESSAGE, parameter: parameter, cop: cop, path: smart_loaded_path) if alternative "#{base}\n`#{parameter}` has been renamed to `#{alternative.chomp}`." else "#{base}\n#{reason.chomp}" end end end end end
Version data entries
57 entries across 55 versions & 6 rubygems