Skip to content

Upgrading rubocop 0.39 to 0.40

Breaking0.39.0 โ†’ 0.40.0Breaking1New19Changed7Fixed23

BreakingUpgrade verdict

1 breaking change.

  • Configuration files using the old path matching syntax must be updated.
1 item needs code or config changes
Breaking1
Removes the deprecated path matching syntax.

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

  • removed: static method PathUtil.hidden?(_)
  • removed: static method PathUtil.issue_deprecation_warning(_, _, _)
  • changed: static method PathUtil.match_path?(_, _, _) โ†’ static method PathUtil.match_path?(_, _)
  • added: method OptionsValidator.boolean_or_empty_cache?()
  • added: method OptionsValidator.except_syntax?()
  • added: method OptionsValidator.incompatible_options()
  • added: method OptionsValidator.no_offense_counts_without_auto_gen_config?()
  • added: method OptionsValidator.only_includes_unneeded_disable?()
  • removed: static method Util.ternary_op?(_)
  • changed: method TrailingComma.put_comma(_, _, _) โ†’ method TrailingComma.put_comma(_, _, _, _)
  • added: method IfNode.ternary?(_)
  • added: method MultilineExpressionIndentation.regular_method_right_hand_side(_)
  • added: method TrailingComma.avoid_autocorrect?(_)
  • added: class UselessArraySplat < Cop
  • added: const UselessArraySplat.ARRAY_NEW_PATTERN
  • added: const UselessArraySplat.MSG
  • added: method UselessAccessModifier.on_block(_)
  • added: method UselessAccessModifier.on_sclass(_)
  • removed: const CaseWhenSplat.OPEN_BRACKET
  • removed: constructor CaseWhenSplat(*)
  • added: class UniqBeforePluck < RuboCop::Cop::Cop
  • added: const UniqBeforePluck.DOT_UNIQ
  • added: const UniqBeforePluck.MSG
  • added: const UniqBeforePluck.NEWLINE
  • added: method UniqBeforePluck.autocorrect(_)
  • added: method UniqBeforePluck.on_send(_)
  • removed: const Lambda.MULTI_MSG
  • removed: const Lambda.SINGLE_MSG
  • removed: const Lambda.SINGLE_NO_ARG_MSG
  • removed: const RedundantException.MSG
  • removed: const RedundantException.TARGET_NODE
  • removed: method SpaceAfterColon.autocorrect(_)
  • removed: method SpaceAfterColon.followed_by_space?(_)
  • removed: method SpaceAfterColon.on_if(_)
  • added: class EmptyCaseCondition < Cop
  • added: const AlignParameters.ALIGN_PARAMS_MSG
  • added: const AlignParameters.FIXED_INDENT_MSG
  • added: const EmptyCaseCondition.MSG
  • added: const Lambda.LITERAL_MESSAGE
  • added: const Lambda.METHOD_MESSAGE
  • added: const Lambda.OFFENDING_SELECTORS
  • added: const MultilineArrayBraceLayout.ALWAYS_NEW_LINE_MESSAGE
  • added: const MultilineArrayBraceLayout.ALWAYS_SAME_LINE_MESSAGE
  • added: const MultilineHashBraceLayout.ALWAYS_NEW_LINE_MESSAGE
  • added: const MultilineHashBraceLayout.ALWAYS_SAME_LINE_MESSAGE
  • added: const MultilineMethodCallBraceLayout.ALWAYS_NEW_LINE_MESSAGE
  • added: const MultilineMethodCallBraceLayout.ALWAYS_SAME_LINE_MESSAGE
  • added: const MultilineMethodDefinitionBraceLayout.ALWAYS_NEW_LINE_MESSAGE
  • added: const MultilineMethodDefinitionBraceLayout.ALWAYS_SAME_LINE_MESSAGE
  • added: const RaiseArgs.COMPACT_MSG
  • added: const RaiseArgs.EXPLODED_MSG
  • added: const RedundantException.MSG_1
  • added: const RedundantException.MSG_2
  • added: method EmptyCaseCondition.on_case(_)
  • added: method RedundantParentheses.allowed_array_or_hash_element?(_)
  • added: method RedundantParentheses.array_element?(_)
  • added: method RedundantParentheses.hash_element?(_)
  • added: method RedundantParentheses.only_closing_paren_before_comma?(_)
  • added: method SpaceAfterColon.on_kwoptarg(_)
  • added: method SpaceAfterComma.space_style_before_rcurly()
  • added: method SpaceAfterSemicolon.space_style_before_rcurly()
  • added: method SymbolProc.non_shortenable_args?(_)