Skip to content

Upgrading rubocop 0.36 to 0.37

Breaking0.36.0 → 0.37.2Breaking1New12Changed6Fixed53

BreakingUpgrade verdict

1 breaking change.

  • Removes Style/SpaceAfterControlKeyword and Style/SpaceBeforeModifierKeyword since Style/SpaceAroundKeyword handles the same cases.
1 item needs code or config changes
Breaking1
Removes Style/SpaceAfterControlKeyword and Style/SpaceBeforeModifierKeyword since Style/SpaceAroundKeyword handles the same cases.
Style/SpaceAfterControlKeywordStyle/SpaceBeforeModifierKeywordStyle/SpaceAroundKeyword

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

  • added: const Config.OBSOLETE_COPS
  • added: const Node.COMPOSITE_LITERALS
  • added: method Node.chained?()
  • added: method Node.complete!()
  • added: method Node.complete?()
  • added: method Node.new_class_or_module_block?(_)
  • added: method Node.parent_module_name_for_sclass(_)
  • added: method Node.unary_operation?()
  • added: method Node.updated(_ = …, _ = …, _ = …)
  • added: method ProcessedSource.ast_with_comments()
  • added: static method PathUtil.absolute?(_)
  • removed: static method Commissioner.call_super(_)
  • removed: static method VariableForce.wrap_with_top_level_scope_node(_)
  • changed: class Commissioner < Parser::AST::Processor → class Commissioner
  • changed: constructor Commissioner(_, _, _ = …) → constructor Commissioner(_, _ = …, _ = …)
  • changed: constructor Corrector(_, _) → constructor Corrector(_, _ = …)
  • changed: static method Util.range_with_surrounding_comma(_, _ = …, _ = …) → static method Util.range_with_surrounding_comma(_, _ = …)
  • changed: static method Util.range_with_surrounding_space(_, _ = …, _ = …, _ = …) → static method Util.range_with_surrounding_space(_, _ = …, _ = …)
  • added: const FrozenStringLiteral.FROZEN_STRING_LITERAL
  • added: const FrozenStringLiteral.FROZEN_STRING_LITERAL_ENABLED
  • added: const FrozenStringLiteral.FROZEN_STRING_LITERAL_TYPES
  • added: const Team.INCOMPATIBLE_COPS
  • added: const Util.BYTE_ORDER_MARK
  • added: method AutocorrectAlignment.display_column(_)
  • added: method MultilineLiteralBraceLayout.autocorrect(_)
  • added: method MultilineLiteralBraceLayout.check_brace_layout(_)
  • added: method Team.forces_for(_)
  • added: module FrozenStringLiteral
  • added: module MultilineLiteralBraceLayout
  • added: property Corrector.corrections: reader
  • added: property Corrector.diagnostics: reader
  • added: static method CheckAssignment.extract_rhs(_)
  • added: static method FrozenStringLiteral.frozen_string_literal_comment_exists?(_, _ = …)
  • added: static method FrozenStringLiteral.frozen_string_literals_enabled?(_)
  • added: static method Util.effective_column(_)
  • removed: const DuplicatedKey.LITERALS
  • added: const Casecmp.CASE_METHODS
  • added: const RedundantBlockCall.CLOSE_PAREN
  • added: const RedundantBlockCall.OPEN_PAREN
  • added: const RedundantBlockCall.SPACE
  • added: const RedundantBlockCall.YIELD
  • added: constructor CaseWhenSplat(*)
  • removed: class SpaceAfterControlKeyword < Cop
  • removed: class SpaceBeforeModifierKeyword < Cop
  • removed: const FrozenStringLiteralComment.FROZEN_STRING_LITERAL
  • removed: const FrozenStringLiteralComment.FROZEN_STRING_LITERAL_ENABLED
  • removed: const SpaceAfterControlKeyword.KEYWORDS
  • removed: const SpaceAfterControlKeyword.MSG
  • removed: const SpaceBeforeModifierKeyword.MSG
  • removed: method Documentation.investigate(_)
  • removed: method EmptyLineBetweenDefs.on_method_def(_, _, _, _)
  • removed: method FrozenStringLiteralComment.on_send(_)
  • removed: method IfUnlessModifier.chained?(_)
  • removed: method MultilineArrayBraceLayout.autocorrect(_)
  • removed: method SpaceAfterControlKeyword.autocorrect(_)
  • removed: method SpaceAfterControlKeyword.on_keyword(_)
  • removed: method SpaceBeforeModifierKeyword.on_if(_)
  • removed: method SpaceBeforeModifierKeyword.on_until(_)
  • removed: method SpaceBeforeModifierKeyword.on_while(_)
  • changed: method MultilineBlockLayout.autocorrect_arguments(_, _, _, _) → method MultilineBlockLayout.autocorrect_arguments(_, _, _)
  • changed: static method CaseCorrector.correct(_) → static method CaseCorrector.correct(_, _)
  • changed: static method IfCorrector.correct(_) → static method IfCorrector.correct(_, _)
  • changed: static method UnlessCorrector.correct(_) → static method UnlessCorrector.correct(_, _)
  • added: class MultilineHashBraceLayout < Cop
  • added: class MultilineMethodCallBraceLayout < Cop
  • added: class MultilineMethodDefinitionBraceLayout < Cop
  • added: class SpaceAroundKeyword < Cop
  • added: class ZeroLengthPredicate < Cop
  • added: const ConditionalAssignmentHelper.ALIGN_WITH
  • added: const ConditionalAssignmentHelper.END_ALIGNMENT
  • added: const ConditionalAssignmentHelper.KEYWORD
  • added: const MultilineHashBraceLayout.NEW_LINE_MESSAGE
  • added: const MultilineHashBraceLayout.SAME_LINE_MESSAGE
  • added: const MultilineMethodCallBraceLayout.NEW_LINE_MESSAGE
  • added: const MultilineMethodCallBraceLayout.SAME_LINE_MESSAGE
  • added: const MultilineMethodDefinitionBraceLayout.NEW_LINE_MESSAGE
  • added: const MultilineMethodDefinitionBraceLayout.SAME_LINE_MESSAGE
  • added: const SpaceAroundKeyword.ACCEPT_LEFT_PAREN
  • added: const SpaceAroundKeyword.DO
  • added: const SpaceAroundKeyword.MSG_AFTER
  • added: const SpaceAroundKeyword.MSG_BEFORE
  • added: const ZeroLengthPredicate.NONZERO_MSG
  • added: const ZeroLengthPredicate.ZERO_MSG
  • added: method ConditionalAssignmentHelper.indent(_, _)
  • added: method Documentation.on_class(_)
  • added: method Documentation.on_module(_)
  • added: method EmptyLineBetweenDefs.check_defs(_)
  • added: method EmptyLineBetweenDefs.on_begin(_)
  • added: method MultilineHashBraceLayout.on_hash(_)
  • added: method MultilineMethodCallBraceLayout.on_send(_)
  • added: method MultilineMethodDefinitionBraceLayout.on_method_def(_, _, _, _)
  • added: method MutableConstant.on_or_asgn(_)
  • added: method RedundantParentheses.check(_)
  • added: method RedundantParentheses.check_send(_, _)
  • added: method RedundantParentheses.first_arg?(_)
  • added: method RedundantParentheses.parens_allowed?(_)
  • added: method SpaceAroundKeyword.on_and(_)
  • added: method SpaceAroundKeyword.on_block(_)
  • added: method SpaceAroundKeyword.on_break(_)
  • added: method SpaceAroundKeyword.on_case(_)
  • added: method SpaceAroundKeyword.on_defined?(_)
  • added: method SpaceAroundKeyword.on_ensure(_)
  • added: method SpaceAroundKeyword.on_for(_)
  • added: method SpaceAroundKeyword.on_if(_)
  • added: method SpaceAroundKeyword.on_kwbegin(_)
  • added: method SpaceAroundKeyword.on_next(_)
  • added: method SpaceAroundKeyword.on_or(_)
  • added: method SpaceAroundKeyword.on_postexe(_)
  • added: method SpaceAroundKeyword.on_preexe(_)
  • added: method SpaceAroundKeyword.on_resbody(_)
  • added: method SpaceAroundKeyword.on_rescue(_)
  • added: method SpaceAroundKeyword.on_return(_)
  • added: method SpaceAroundKeyword.on_send(_)
  • added: method SpaceAroundKeyword.on_super(_)
  • added: method SpaceAroundKeyword.on_until(_)
  • added: method SpaceAroundKeyword.on_when(_)
  • added: method SpaceAroundKeyword.on_while(_)
  • added: method SpaceAroundKeyword.on_yield(_)
  • added: method SpaceAroundKeyword.on_zsuper(_)
  • added: method ZeroLengthPredicate.on_send(_)
  • added: const Locatable.FOR_LOOP_CHILD_INDEX
  • added: const Locatable.FOR_LOOP_TYPE
  • added: const Locatable.NON_FOR_LOOP_TYPES
  • added: const Locatable.NON_FOR_LOOP_TYPES_CHILD_INDEX
  • added: const Traversal.MANY_CHILD_NODES
  • added: const Traversal.NO_CHILD_NODES
  • added: const Traversal.ONE_CHILD_NODE
  • added: const Traversal.SECOND_CHILD_ONLY
  • added: method Traversal.on_block(_)
  • added: method Traversal.on_case(_)
  • added: method Traversal.on_casgn(_)
  • added: method Traversal.on_class(_)
  • added: method Traversal.on_const(_)
  • added: method Traversal.on_csend(_)
  • added: method Traversal.on_def(_)
  • added: method Traversal.on_defs(_)
  • added: method Traversal.on_ensure(_)
  • added: method Traversal.on_for(_)
  • added: method Traversal.on_if(_)
  • added: method Traversal.on_module(_)
  • added: method Traversal.on_op_asgn(_)
  • added: method Traversal.on_resbody(_)
  • added: method Traversal.on_rescue(_)
  • added: method Traversal.on_sclass(_)
  • added: method Traversal.on_send(_)
  • added: method Traversal.on_until(_)
  • added: method Traversal.on_when(_)
  • added: method Traversal.on_while(_)
  • added: method Traversal.walk(_)
  • added: module Traversal