Skip to content

Upgrading rubocop 0.67 to 0.68

Breaking0.67.2 → 0.68.1Breaking2New12Changed1Fixed22Other5

BreakingUpgrade verdict

2 breaking changes.

  • Rename Layout/FirstParameterIndentation to Layout/IndentFirstArgument.
  • Rename IndentArray and IndentHash to IndentFirstArrayElement and IndentFirstHashElement.
2 items need code or config changes
Breaking2
Rename Layout/FirstParameterIndentation to Layout/IndentFirstArgument.
Layout/FirstParameterIndentationLayout/IndentFirstArgument
Rename IndentArray and IndentHash to IndentFirstArrayElement and IndentFirstHashElement.
IndentArrayIndentHashIndentFirstArrayElementIndentFirstHashElement

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

  • removed: constructor NodePattern(_)
  • removed: method NodePattern.==(_)
  • removed: method NodePattern.marshal_dump()
  • removed: method NodePattern.marshal_load(_)
  • removed: method NodePattern.match(*)
  • removed: method NodePattern.to_s()
  • removed: property NodePattern.pattern: reader
  • changed: method FileFinder.find_file_upwards(_, _, use_home: …) → method FileFinder.find_file_upwards(_, _)
  • changed: method FileFinder.find_files_upwards(_, _, use_home: …) → method FileFinder.find_files_upwards(_, _)
  • added: const ConfigLoader.XDG_CONFIG
  • added: class AliasNode < Node
  • added: class ClassNode < Node
  • added: class ModuleNode < Node
  • added: class SelfClassNode < Node
  • added: method AliasNode.new_identifier()
  • added: method AliasNode.old_identifier()
  • added: method ClassNode.body()
  • added: method ClassNode.identifier()
  • added: method ClassNode.parent_class()
  • added: method ModuleNode.body()
  • added: method ModuleNode.identifier()
  • added: method RangeNode.begin()
  • added: method RangeNode.end()
  • added: method ResbodyNode.exception_variable()
  • added: method SelfClassNode.body()
  • added: method SelfClassNode.identifier()
  • removed: module ArrayHashIndentation
  • removed: module Performance
  • added: method CheckLineBreakable.extract_breakable_node(_, _)
  • added: module CheckLineBreakable
  • added: module MultilineElementIndentation
  • added: static method UnusedArgCorrector.correct_for_blockarg_type(_)
  • added: method RedundantLocationArgument.offending_range(_)
  • removed: class FirstParameterIndentation < Cop
  • removed: class IndentArray < Cop
  • removed: class IndentHash < Cop
  • removed: const FirstParameterIndentation.MSG
  • removed: const IndentArray.MSG
  • removed: const IndentHash.MSG
  • removed: const SpaceInLambdaLiteral.ARROW
  • removed: method AlignParameters.on_csend(_)
  • removed: method AlignParameters.on_send(_)
  • removed: method FirstParameterIndentation.autocorrect(_)
  • removed: method FirstParameterIndentation.on_csend(_)
  • removed: method FirstParameterIndentation.on_send(_)
  • removed: method IndentArray.autocorrect(_)
  • removed: method IndentArray.on_array(_)
  • removed: method IndentArray.on_csend(_)
  • removed: method IndentArray.on_send(_)
  • removed: method IndentHash.autocorrect(_)
  • removed: method IndentHash.on_csend(_)
  • removed: method IndentHash.on_hash(_)
  • removed: method IndentHash.on_send(_)
  • added: class AlignArguments < Cop
  • added: class HeredocArgumentClosingParenthesis < Cop
  • added: class IndentFirstArgument < Cop
  • added: class IndentFirstArrayElement < Cop
  • added: class IndentFirstHashElement < Cop
  • added: class IndentFirstParameter < Cop
  • added: const AlignArguments.ALIGN_PARAMS_MSG
  • added: const AlignArguments.FIXED_INDENT_MSG
  • added: const HeredocArgumentClosingParenthesis.MSG
  • added: const HeredocArgumentClosingParenthesis.STRING_TYPES
  • added: const IndentFirstArgument.MSG
  • added: const IndentFirstArrayElement.MSG
  • added: const IndentFirstHashElement.MSG
  • added: const IndentFirstParameter.MSG
  • added: method AlignArguments.autocorrect(_)
  • added: method AlignArguments.on_csend(_)
  • added: method AlignArguments.on_send(_)
  • added: method FirstMethodArgumentLineBreak.on_super(_)
  • added: method HeredocArgumentClosingParenthesis.autocorrect(_)
  • added: method HeredocArgumentClosingParenthesis.on_send(_)
  • added: method IndentFirstArgument.autocorrect(_)
  • added: method IndentFirstArgument.on_csend(_)
  • added: method IndentFirstArgument.on_send(_)
  • added: method IndentFirstArrayElement.autocorrect(_)
  • added: method IndentFirstArrayElement.on_array(_)
  • added: method IndentFirstArrayElement.on_csend(_)
  • added: method IndentFirstArrayElement.on_send(_)
  • added: method IndentFirstHashElement.autocorrect(_)
  • added: method IndentFirstHashElement.on_csend(_)
  • added: method IndentFirstHashElement.on_hash(_)
  • added: method IndentFirstHashElement.on_send(_)
  • added: method IndentFirstParameter.autocorrect(_)
  • added: method IndentFirstParameter.on_def(_)
  • added: method IndentFirstParameter.on_defs(_)
  • added: class HeredocMethodCallPosition < Cop
  • added: const HeredocMethodCallPosition.MSG
  • added: const HeredocMethodCallPosition.STRING_TYPES
  • added: method HeredocMethodCallPosition.autocorrect(_)
  • added: method HeredocMethodCallPosition.on_csend(_)
  • added: method HeredocMethodCallPosition.on_send(_)
  • removed: method LineLength.investigate(_)
  • added: method LineLength.autocorrect(_)
  • added: method LineLength.investigate_post_walk(_)
  • added: method LineLength.on_array(_)
  • added: method LineLength.on_hash(_)
  • added: method LineLength.on_potential_breakable_node(_)
  • added: method LineLength.on_send(_)
  • added: method RescuedExceptionsVariableName.autocorrect(_)
  • removed: class Caller < Cop
  • removed: class CaseWhenSplat < Cop
  • removed: class Casecmp < Cop
  • removed: class ChainArrayAllocation < Cop
  • removed: class CompareWithBlock < Cop
  • removed: class Count < Cop
  • removed: class Detect < Cop
  • removed: class DoubleStartEndWith < Cop
  • removed: class EndWith < Cop
  • removed: class FixedSize < Cop
  • removed: class FlatMap < Cop
  • removed: class InefficientHashSearch < Cop
  • removed: class OpenStruct < Cop
  • removed: class RangeInclude < Cop
  • removed: class RedundantBlockCall < Cop
  • removed: class RedundantMatch < Cop
  • removed: class RedundantMerge < Cop
  • removed: class RegexpMatch < Cop
  • removed: class ReverseEach < Cop
  • removed: class Size < Cop
  • removed: class StartWith < Cop
  • removed: class StringReplacement < Cop
  • removed: class TimesMap < Cop
  • removed: class UnfreezeString < Cop
  • removed: class UriDefaultParser < Cop
  • removed: const Caller.MSG_BRACE
  • removed: const Caller.MSG_FIRST
  • removed: const CaseWhenSplat.ARRAY_MSG
  • removed: const CaseWhenSplat.MSG
  • removed: const Casecmp.CASE_METHODS
  • removed: const Casecmp.MSG
  • removed: const ChainArrayAllocation.ALWAYS_RETURNS_NEW_ARRAY
  • removed: const ChainArrayAllocation.HAS_MUTATION_ALTERNATIVE
  • removed: const ChainArrayAllocation.MSG
  • removed: const ChainArrayAllocation.RETURNS_NEW_ARRAY_WHEN_NO_BLOCK
  • removed: const ChainArrayAllocation.RETURN_NEW_ARRAY_WHEN_ARGS
  • removed: const CompareWithBlock.MSG
  • removed: const Count.MSG
  • removed: const Detect.MSG
  • removed: const Detect.REVERSE_MSG
  • removed: const DoubleStartEndWith.MSG
  • removed: const EndWith.MSG
  • removed: const EndWith.SINGLE_QUOTE
  • removed: const FixedSize.MSG
  • removed: const FlatMap.FLATTEN_MULTIPLE_LEVELS
  • removed: const FlatMap.MSG
  • removed: const OpenStruct.MSG
  • removed: const RangeInclude.MSG
  • removed: const RedundantBlockCall.CLOSE_PAREN
  • removed: const RedundantBlockCall.MSG
  • removed: const RedundantBlockCall.OPEN_PAREN
  • removed: const RedundantBlockCall.SPACE
  • removed: const RedundantBlockCall.YIELD
  • removed: const RedundantMatch.MSG
  • removed: const RedundantMerge.AREF_ASGN
  • removed: const RedundantMerge.MSG
  • removed: const RedundantMerge.WITH_MODIFIER_CORRECTION
  • removed: const RegexpMatch.MATCH_NODE_PATTERN
  • removed: const RegexpMatch.MSG
  • removed: const RegexpMatch.TYPES_IMPLEMENTING_MATCH
  • removed: const ReverseEach.MSG
  • removed: const ReverseEach.UNDERSCORE
  • removed: const Size.MSG
  • removed: const StartWith.MSG
  • removed: const StartWith.SINGLE_QUOTE
  • removed: const StringReplacement.BANG
  • removed: const StringReplacement.DELETE
  • removed: const StringReplacement.DETERMINISTIC_REGEX
  • removed: const StringReplacement.MSG
  • removed: const StringReplacement.SINGLE_QUOTE
  • removed: const StringReplacement.TR
  • removed: const TimesMap.MESSAGE
  • removed: const TimesMap.MESSAGE_ONLY_IF
  • removed: const UnfreezeString.MSG
  • removed: const UriDefaultParser.MSG
  • removed: method Caller.on_send(_)
  • removed: method CaseWhenSplat.autocorrect(_)
  • removed: method CaseWhenSplat.on_case(_)
  • removed: method Casecmp.autocorrect(_)
  • removed: method Casecmp.on_send(_)
  • removed: method ChainArrayAllocation.on_send(_)
  • removed: method CompareWithBlock.autocorrect(_)
  • removed: method CompareWithBlock.on_block(_)
  • removed: method Count.autocorrect(_)
  • removed: method Count.on_send(_)
  • removed: method Detect.autocorrect(_)
  • removed: method Detect.on_send(_)
  • removed: method DoubleStartEndWith.autocorrect(_)
  • removed: method DoubleStartEndWith.on_or(_)
  • removed: method EndWith.autocorrect(_)
  • removed: method EndWith.literal_at_end?(_)
  • removed: method EndWith.on_send(_)
  • removed: method FixedSize.on_send(_)
  • removed: method FlatMap.autocorrect(_)
  • removed: method FlatMap.on_send(_)
  • removed: method InefficientHashSearch.autocorrect(_)
  • removed: method InefficientHashSearch.on_send(_)
  • removed: method OpenStruct.on_send(_)
  • removed: method RangeInclude.autocorrect(_)
  • removed: method RangeInclude.on_send(_)
  • removed: method RedundantBlockCall.autocorrect(_)
  • removed: method RedundantBlockCall.on_def(_)
  • removed: method RedundantMatch.autocorrect(_)
  • removed: method RedundantMatch.on_send(_)
  • removed: method RedundantMerge.autocorrect(_)
  • removed: method RedundantMerge.on_send(_)
  • removed: method RegexpMatch.autocorrect(_)
  • removed: method RegexpMatch.match_with_lvasgn?(_)
  • removed: method RegexpMatch.on_case(_)
  • removed: method RegexpMatch.on_if(_)
  • removed: method ReverseEach.autocorrect(_)
  • removed: method ReverseEach.on_send(_)
  • removed: method Size.autocorrect(_)
  • removed: method Size.on_send(_)
  • removed: method StartWith.autocorrect(_)
  • removed: method StartWith.literal_at_start?(_)
  • removed: method StartWith.on_send(_)
  • removed: method StringReplacement.autocorrect(_)
  • removed: method StringReplacement.on_send(_)
  • removed: method StringReplacement.replace_method(_, _, _, _, _)
  • removed: method TimesMap.autocorrect(_)
  • removed: method TimesMap.on_block(_)
  • removed: method TimesMap.on_send(_)
  • removed: method UnfreezeString.on_send(_)
  • removed: method UriDefaultParser.autocorrect(_)
  • removed: method UriDefaultParser.on_send(_)
  • removed: class EachWithObjectInspector
  • removed: constructor EachWithObjectInspector(_, _)
  • removed: method EachWithObjectInspector.value_used?()
  • removed: method BelongsTo.extract_required_option(_)
  • added: const ActiveRecordOverride.ACTIVE_RECORD_CLASSES
  • removed: class UnlessCorrector
  • removed: const RedundantParentheses.ALLOWED_LITERALS
  • removed: static method UnlessCorrector.correct(_, _)
  • added: const BlockDelimiters.ALWAYS_BRACES_MESSAGE
  • added: const SafeNavigation.LOGIC_JUMP_KEYWORDS
  • added: method SymbolProc.destructuring_block_argument?(_)
  • added: static method InverseMethods.autocorrect_incompatible_with()
  • added: static method Next.autocorrect_incompatible_with()
  • removed: method Macros.def_node_matcher(_, _)
  • removed: method Macros.def_node_search(_, _)
  • removed: method Macros.node_search(_, _, _, _, _)
  • removed: method Macros.node_search_all(_, _, _)
  • removed: method Macros.node_search_body(_, _, _, _, _)
  • removed: method Macros.node_search_first(_, _, _)
  • removed: module Macros
  • added: class Compiler
  • added: const Compiler.CAPTURED_REST
  • added: const Compiler.CLOSING
  • added: const Compiler.CUR_ELEMENT
  • added: const Compiler.CUR_NODE
  • added: const Compiler.CUR_PLACEHOLDER
  • added: const Compiler.FUNCALL
  • added: const Compiler.IDENTIFIER
  • added: const Compiler.LITERAL
  • added: const Compiler.META
  • added: const Compiler.METHOD_NAME
  • added: const Compiler.NODE
  • added: const Compiler.NUMBER
  • added: const Compiler.PARAM
  • added: const Compiler.PARAM_NUMBER
  • added: const Compiler.PREDICATE
  • added: const Compiler.REST
  • added: const Compiler.SEPARATORS
  • added: const Compiler.SEQ_HEAD_GUARD
  • added: const Compiler.SEQ_HEAD_INDEX
  • added: const Compiler.STRING
  • added: const Compiler.SYMBOL
  • added: const Compiler.TOKEN
  • added: const Compiler.TOKENS
  • added: const Compiler.WILDCARD
  • added: constructor Compiler(_, _ = …)
  • added: method Compiler.run(_)
  • added: property Compiler.captures: reader
  • added: property Compiler.match_code: reader
  • added: property Compiler.tokens: reader
  • added: class ANY_ORDER_TEMPLATE < ERB.new