Skip to content

Upgrading rubocop 0.40 to 0.41

Unknown0.40.0 → 0.41.2Deprecated1New23Changed2Fixed45Other2

UnknownUpgrade verdict

DepDelta hasn't looked for the notes of 1 of 3 releases yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
  • Their commits are listed with this comparison.
1 item needs code or config changes
Deprecated1
Rename Style/DeprecatedHashMethods to Style/PreferredHashMethods.
Style/DeprecatedHashMethodsStyle/PreferredHashMethods

Generated by DepDelta from published Ruby source. Not mixed with prose notes.

  • added: method CopHelper._investigate(_, _)
  • added: method CopHelper.autocorrect_source(_, _, _ = …)
  • added: method CopHelper.autocorrect_source_file(_, _)
  • added: method CopHelper.inspect_source(_, _, _ = …)
  • added: method CopHelper.inspect_source_file(_, _)
  • added: method CopHelper.parse_source(_, _ = …)
  • added: method HostEnvironmentSimulatorHelper.in_its_own_process_with(*)
  • added: module CopHelper
  • added: module HostEnvironmentSimulatorHelper
  • removed: method Node.new_class_or_module_block?(_)
  • removed: method Node.parent_module_name_for_sclass(_)
  • added: class StringInterpreter
  • added: const CommentConfig.COPS_PATTERN
  • added: const CommentConfig.COP_NAMES_PATTERN
  • added: const CommentConfig.COP_NAME_PATTERN
  • added: const Config.DEFAULT_RUBY_VERSION
  • added: const StringInterpreter.STRING_ESCAPES
  • added: const StringInterpreter.STRING_ESCAPE_REGEX
  • added: method Config.target_ruby_version()
  • added: method Node.keyword_bang?()
  • added: method Node.modifier_form?()
  • added: static method ResultCache.allow_symlinks_in_cache_location?(_)
  • added: static method StringInterpreter.interpret(_)
  • changed: class Finished < Exception → class Finished < RuntimeError
  • changed: class COMMENT_DIRECTIVE_REGEXP < Regexp.new('\A# rubocop : ((?:dis|en)able)\b ((?:[\w/]+,?)+)'.gsub(' ', '\s*')) → class COMMENT_DIRECTIVE_REGEXP < Regexp.new(('\A# rubocop : ((?:dis|en)able)\b ' + COPS_PATTERN).gsub(' ', '\s*'))
  • added: class CopAnalysis < Struct.new(:line_ranges, :start_line_number)
  • removed: const Util.STRING_ESCAPES
  • removed: const Util.STRING_ESCAPE_REGEX
  • added: method Cop.highlights()
  • added: method Cop.messages()
  • added: method Corrector.remove_trailing(_, _)
  • added: method IntegerNode.integer_part(_)
  • added: method MatchRange.each_match_range(_, _)
  • added: method MatchRange.match_range(_, _)
  • added: method MultilineExpressionIndentation.valid_method_rhs_candidate?(_, _)
  • added: method MultilineExpressionIndentation.valid_rhs_candidate?(_, _)
  • added: method PercentLiteral.contents_range(_)
  • added: method SpaceAfterPunctuation.allowed_type?(_)
  • added: method SpaceAfterPunctuation.each_missing_space(_)
  • added: method SpaceAfterPunctuation.space_missing?(_, _)
  • added: method SpaceAfterPunctuation.space_required_before?(_)
  • added: method SpaceBeforePunctuation.each_missing_space(_)
  • added: method SpaceBeforePunctuation.space_missing?(_, _)
  • added: method SpaceBeforePunctuation.space_required_after?(_)
  • added: method Team.autocorrect(_, _)
  • added: method TrailingComma.check_comma(_, _, _)
  • added: method TrailingComma.extra_avoid_comma_info()
  • added: method TrailingComma.no_elements_on_same_line?(_)
  • added: module IntegerNode
  • added: module MatchRange
  • added: static method Util.escape_string(_)
  • added: static method Util.needs_escaping?(_)
  • added: class InheritException < Cop
  • added: class PercentStringArray < Cop
  • added: class PercentSymbolArray < Cop
  • added: class ShadowedException < Cop
  • added: const InheritException.MSG
  • added: const InheritException.PREFERRED_BASE_CLASS
  • added: const PercentStringArray.MSG
  • added: const PercentSymbolArray.MSG
  • added: const ShadowedException.MSG
  • added: method InheritException.on_class(_)
  • added: method PercentStringArray.on_array(_)
  • added: method PercentStringArray.on_percent_literal(_)
  • added: method PercentSymbolArray.on_array(_)
  • added: method PercentSymbolArray.on_percent_literal(_)
  • added: method ShadowedException.on_rescue(_)
  • removed: method RedundantBlockCall.autocorrect(_)
  • added: class PushSplat < Cop
  • added: const PushSplat.MSG
  • added: method PushSplat.autocorrect(_)
  • added: method PushSplat.on_send(_)
  • added: method StringReplacement.replace_method(_, _, _, _, _)
  • removed: const UniqBeforePluck.DOT_UNIQ
  • added: class Exit < Cop
  • added: class OutputSafety < Cop
  • added: class RequestReferer < Cop
  • added: const Exit.EXPLICIT_RECEIVERS
  • added: const Exit.MSG
  • added: const Exit.TARGET_METHODS
  • added: const OutputSafety.MSG
  • added: const UniqBeforePluck.PATTERN
  • added: const Validation.TYPES
  • added: method Exit.on_send(_)
  • added: method OutputSafety.on_send(_)
  • added: method RequestReferer.autocorrect(_)
  • added: method RequestReferer.on_send(_)
  • removed: class DeprecatedHashMethods < Cop
  • removed: const DeprecatedHashMethods.DEPRECATED_METHODS
  • removed: const DeprecatedHashMethods.MSG
  • removed: const ModuleFunction.MSG
  • removed: const ModuleFunction.TARGET_NODE
  • removed: method DeprecatedHashMethods.autocorrect(_)
  • removed: method DeprecatedHashMethods.on_send(_)
  • removed: method SymbolProc.autocorrect_method(_, _, _, _)
  • removed: method SymbolProc.autocorrect_no_args(_, _, _)
  • removed: method SymbolProc.autocorrect_with_args(_, _, _, _)
  • removed: method SymbolProc.begin_pos_for_replacement(_)
  • removed: method SymbolProc.block_range_with_space(_)
  • removed: method SymbolProc.can_shorten?(_, _)
  • removed: method SymbolProc.ignored_method?(_)
  • removed: method SymbolProc.ignored_methods()
  • removed: method SymbolProc.non_shortenable_args?(_)
  • removed: method SymbolProc.super?(_)
  • added: class EachForSimpleLoop < Cop
  • added: class ImplicitRuntimeError < Cop
  • added: class NumericLiteralPrefix < Cop
  • added: class PreferredHashMethods < Cop
  • added: class SpaceInsideArrayPercentLiteral < Cop
  • added: class SpaceInsidePercentLiteralDelimiters < Cop
  • added: const ModuleFunction.EXTEND_SELF_MSG
  • added: const ModuleFunction.EXTEND_SELF_NODE
  • added: const ModuleFunction.MODULE_FUNCTION_MSG
  • added: const ModuleFunction.MODULE_FUNCTION_NODE
  • added: const NumericLiteralPrefix.BINARY_MSG
  • added: const NumericLiteralPrefix.BINARY_REGEX
  • added: const NumericLiteralPrefix.DECIMAL_MSG
  • added: const NumericLiteralPrefix.DECIMAL_REGEX
  • added: const NumericLiteralPrefix.HEX_MSG
  • added: const NumericLiteralPrefix.HEX_REGEX
  • added: const NumericLiteralPrefix.OCTAL_MSG
  • added: const NumericLiteralPrefix.OCTAL_REGEX
  • added: const NumericLiteralPrefix.OCTAL_ZERO_ONLY_MSG
  • added: const NumericLiteralPrefix.OCTAL_ZERO_ONLY_REGEX
  • added: const PreferredHashMethods.MSG
  • added: const PreferredHashMethods.PREFERRED_METHODS
  • added: const SpaceAroundKeyword.SAFE_NAVIGATION
  • added: const SpaceInsideArrayPercentLiteral.MSG
  • added: const SpaceInsideArrayPercentLiteral.MULTIPLE_SPACES_BETWEEN_ITEMS_REGEX
  • added: const SpaceInsidePercentLiteralDelimiters.BEGIN_REGEX
  • added: const SpaceInsidePercentLiteralDelimiters.END_REGEX
  • added: const SpaceInsidePercentLiteralDelimiters.MSG
  • added: method Alias.add_offense_for_args(_)
  • added: method ConditionalCorrectorHelper.white_space_range(_, _)
  • added: method EachForSimpleLoop.autocorrect(_)
  • added: method EachForSimpleLoop.on_block(_)
  • added: method ImplicitRuntimeError.on_send(_)
  • added: method InfiniteLoop.on_until_post(_)
  • added: method InfiniteLoop.on_while_post(_)
  • added: method NumericLiteralPrefix.on_int(_)
  • added: method PreferredHashMethods.autocorrect(_)
  • added: method PreferredHashMethods.on_send(_)
  • added: method RedundantParentheses.check_unary(_, _)
  • added: method RedundantParentheses.empty_parentheses?(_)
  • added: method RedundantParentheses.hash_literal_as_first_arg?(_)
  • added: method SpaceAfterNot.whitespace_after_bang_op?(_)
  • added: method SpaceInsideArrayPercentLiteral.autocorrect(_)
  • added: method SpaceInsideArrayPercentLiteral.on_array(_)
  • added: method SpaceInsideArrayPercentLiteral.on_percent_literal(_)
  • added: method SpaceInsidePercentLiteralDelimiters.autocorrect(_)
  • added: method SpaceInsidePercentLiteralDelimiters.on_array(_)
  • added: method SpaceInsidePercentLiteralDelimiters.on_percent_literal(_)
  • added: method SpaceInsidePercentLiteralDelimiters.on_xstr(_)
  • added: class Investigation < Struct.new(:offenses, :errors)
  • added: constructor DisabledConfigFormatter(_, _ = …)
  • added: method DisabledConfigFormatter.command()
  • added: method DisabledConfigFormatter.output_cop(_, _)
  • added: method DisabledConfigFormatter.output_offenses()
  • added: method Compiler.compile_expr_with_index(_, _, _)
  • added: method Compiler.compile_seq_terms_with_size(_, _)
  • changed: class InfiniteCorrectionLoop < Exception → class InfiniteCorrectionLoop < RuntimeError