Skip to content

Upgrading rubocop 0.47 to 0.48

Unknown0.47.1 → 0.48.1

Fetching 2 releases from GitHub…0 / 2
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

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

  • added: const RuboCop.RUBY_EXTENSIONS
  • added: const RuboCop.RUBY_FILENAMES
  • added: const RuboCop.RUBY_INTERPRETERS
  • removed: method Config.cop_enabled?(_)
  • added: const Config.DEFAULT_RAILS_VERSION
  • added: method Config.target_rails_version()
  • added: method MagicComment.any?()
  • added: method MagicComment.encoding_specified?()
  • added: method TargetFinder.ruby_extension?(_)
  • added: method TargetFinder.ruby_file?(_)
  • added: method TargetFinder.ruby_filename?(_)
  • added: module Platform
  • added: static method ConfigLoader.create_config(_, _)
  • added: static method ConfigLoader.target_ruby_version_to_f!(_)
  • added: static method Platform.windows?()
  • added: class AndNode < Node
  • added: class EnsureNode < Node
  • added: class OrNode < Node
  • added: class ResbodyNode < Node
  • added: class SendNode < Node
  • added: const PredicateOperatorNode.LOGICAL_AND
  • added: const PredicateOperatorNode.LOGICAL_OR
  • added: const PredicateOperatorNode.SEMANTIC_AND
  • added: const PredicateOperatorNode.SEMANTIC_OR
  • added: method AndNode.alternate_operator()
  • added: method AndNode.inverse_operator()
  • added: method AndNode.node_parts()
  • added: method BinaryOperatorNode.lhs()
  • added: method BinaryOperatorNode.rhs()
  • added: method EnsureNode.body()
  • added: method EnsureNode.node_parts()
  • added: method HashNode.empty?()
  • added: method Node.operator_keyword?()
  • added: method OrNode.alternate_operator()
  • added: method OrNode.inverse_operator()
  • added: method OrNode.node_parts()
  • added: method PredicateOperatorNode.logical_operator?()
  • added: method PredicateOperatorNode.operator()
  • added: method PredicateOperatorNode.semantic_operator?()
  • added: method ResbodyNode.body()
  • added: method ResbodyNode.node_parts()
  • added: method SendNode.arguments()
  • added: method SendNode.arguments?()
  • added: method SendNode.bang_method?()
  • added: method SendNode.block_argument?()
  • added: method SendNode.camel_case_method?()
  • added: method SendNode.command?(_)
  • added: method SendNode.dot?()
  • added: method SendNode.double_colon?()
  • added: method SendNode.first_argument()
  • added: method SendNode.implicit_call?()
  • added: method SendNode.last_argument()
  • added: method SendNode.macro?()
  • added: method SendNode.method?(_)
  • added: method SendNode.method_name()
  • added: method SendNode.node_parts()
  • added: method SendNode.operator_method?()
  • added: method SendNode.parenthesized?()
  • added: method SendNode.predicate_method?()
  • added: method SendNode.receiver()
  • added: method SendNode.self_receiver?()
  • added: method SendNode.setter_method?()
  • added: method SendNode.splat_argument?()
  • added: module BinaryOperatorNode
  • added: module PredicateOperatorNode
  • changed: class COMMENT_DIRECTIVE_REGEXP < Regexp.new(('\A# rubocop : ((?:dis|en)able)\b ' + COPS_PATTERN).gsub(' ', '\s*')) → class COMMENT_DIRECTIVE_REGEXP < Regexp.new(('# rubocop : ((?:dis|en)able)\b ' + COPS_PATTERN).gsub(' ', '\s*'))
  • removed: method MethodPreference.default_cop_config()
  • removed: method MethodPreference.preferred_method(_)
  • removed: method MethodPreference.preferred_methods()
  • removed: method MultilineExpressionIndentation.assignment_call?(_)
  • removed: method PercentLiteral.begin_source(_)
  • removed: method PercentLiteral.contents_range(_)
  • removed: method PercentLiteral.percent_literal?(_)
  • removed: method PercentLiteral.process(_, *)
  • removed: method PercentLiteral.type(_)
  • removed: static method Util.double_quotes_acceptable?(_)
  • removed: static method Util.hard_to_type?(_)
  • removed: static method Util.numeric_range_size(_)
  • added: const PercentLiteral.PERCENT_LITERAL_TYPES
  • added: method Cop.target_rails_version()
  • added: method IgnoredPattern.ignored_line?(_)
  • added: method IgnoredPattern.ignored_patterns()
  • added: method IgnoredPattern.matches_ignored_pattern?(_)
  • added: method MessageAnnotator.urls()
  • added: method RescueNode.investigate(_)
  • added: method RescueNode.rescue_modifier?(_)
  • added: method TargetRailsVersion.minimum_target_rails_version(_)
  • added: method TargetRailsVersion.support_target_rails_version?(_)
  • added: module IgnoredPattern
  • added: module RescueNode
  • added: module TargetRailsVersion
  • added: static method Util.symbol_without_quote?(_)
  • added: method OrderedGems.get_source_range(_)
  • removed: const SafeNavigationChain.ADDITIONAL_NIL_METHODS
  • removed: method Debugger.autocorrect(_)
  • removed: method Debugger.binding_irb?(_)
  • removed: method NonLocalExitFromIterator.chained_send?(_)
  • removed: method NonLocalExitFromIterator.define_method?(_)
  • removed: method NonLocalExitFromIterator.return_value?(_)
  • added: class AmbiguousBlockAssociation < Cop
  • added: const AmbiguousBlockAssociation.MSG
  • added: method AmbiguousBlockAssociation.on_send(_)
  • added: method EmptyEnsure.autocorrect(_)
  • added: method DoubleStartEndWith.autocorrect(_)
  • removed: method ReadWriteAttribute.autocorrect(_)
  • removed: method ReadWriteAttribute.message(_)
  • added: class ActiveSupportAliases < Cop
  • added: class Blank < Cop
  • added: class Present < Cop
  • added: class RelativeDateConstant < Cop
  • added: const ActiveSupportAliases.ALIASES
  • added: const ActiveSupportAliases.MSG
  • added: const Blank.MSG_NIL_OR_EMPTY
  • added: const Blank.MSG_NOT_PRESENT
  • added: const Blank.MSG_UNLESS_PRESENT
  • added: const FindEach.IGNORED_METHODS
  • added: const Present.MSG_EXISTS_AND_NOT_EMPTY
  • added: const Present.MSG_NOT_BLANK
  • added: const Present.MSG_UNLESS_BLANK
  • added: const RelativeDateConstant.MSG
  • added: const RelativeDateConstant.RELATIVE_DATE_METHODS
  • added: const RequestReferer.MSG
  • added: const SkipsModelValidations.METHODS_WITH_ARGUMENTS
  • added: const TimeZone.GOOD_METHODS
  • added: method ActiveSupportAliases.on_send(_)
  • added: method Blank.autocorrect(_)
  • added: method Blank.on_if(_)
  • added: method Blank.on_or(_)
  • added: method Blank.on_send(_)
  • added: method Present.autocorrect(_)
  • added: method Present.on_and(_)
  • added: method Present.on_if(_)
  • added: method Present.on_or(_)
  • added: method Present.on_send(_)
  • added: method RelativeDateConstant.on_casgn(_)
  • removed: const ConditionalAssignment.CONDITION_TYPES
  • removed: const ConditionalAssignment.METHODS
  • removed: const EndOfLine.MSG
  • removed: method Attr.autocorrect(_)
  • removed: method ColonMethodCall.allowed_name(_)
  • removed: method RescueModifier.investigate(_)
  • removed: method SpaceAfterNot.whitespace_after_bang_op?(_)
  • removed: method StringMethods.autocorrect(_)
  • removed: method SymbolArray.validate_config()
  • added: class EmptyLineAfterMagicComment < Cop
  • added: class EmptyLinesAroundBeginBody < Cop
  • added: class EmptyLinesAroundExceptionHandlingKeywords < Cop
  • added: class IndentHeredoc < Cop
  • added: class InverseMethods < Cop
  • added: class MixinGrouping < Cop
  • added: const Attr.MSG
  • added: const EmptyLineAfterMagicComment.BLANK_LINE
  • added: const EmptyLineAfterMagicComment.MSG
  • added: const EmptyLinesAroundBeginBody.KIND
  • added: const EmptyLinesAroundExceptionHandlingKeywords.MSG
  • added: const EndOfLine.MSG_DETECTED
  • added: const EndOfLine.MSG_MISSING
  • added: const IndentHeredoc.LIBRARY_MSG
  • added: const IndentHeredoc.RUBY23_MSG
  • added: const IndentHeredoc.StripMethods
  • added: const InverseMethods.EQUALITY_METHODS
  • added: const InverseMethods.MSG
  • added: const MixinGrouping.MIXIN_METHODS
  • added: const MixinGrouping.MSG
  • added: const SpaceAroundOperators.IRREGULAR_METHODS
  • added: method ConditionalAssignmentHelper.end_with_eq?(_)
  • added: method EmptyLineAfterMagicComment.autocorrect(_)
  • added: method EmptyLineAfterMagicComment.investigate(_)
  • added: method EmptyLinesAroundBeginBody.on_kwbegin(_)
  • added: method EmptyLinesAroundExceptionHandlingKeywords.on_kwbegin(_)
  • added: method EmptyLinesAroundExceptionHandlingKeywords.on_method_def(_, _, _, _)
  • added: method EndOfLine.offense_message(_)
  • added: method EndOfLine.unimportant_missing_cr?(_, _, _)
  • added: method IndentHeredoc.autocorrect(_)
  • added: method IndentHeredoc.on_dstr(_)
  • added: method IndentHeredoc.on_str(_)
  • added: method IndentHeredoc.on_xstr(_)
  • added: method IndentationWidth.on_resbody(_)
  • added: method InverseMethods.autocorrect(_)
  • added: method InverseMethods.correct_inverse_block(_)
  • added: method InverseMethods.end_parentheses(_, _)
  • added: method InverseMethods.inverse_blocks()
  • added: method InverseMethods.inverse_methods()
  • added: method InverseMethods.not_to_receiver(_, _)
  • added: method InverseMethods.on_block(_)
  • added: method InverseMethods.on_send(_)
  • added: method MixinGrouping.on_send(_)
  • added: method SpaceAfterNot.whitespace_after_operator?(_)
  • added: static property WordArray.largest_brackets: accessor
  • removed: const Assignment.REFERENCE_PENETRABLE_BRANCH_TYPES
  • removed: const Locatable.BRANCH_TYPES
  • removed: const Locatable.CONDITION_INDEX_OF_BRANCH_NODE
  • removed: const Locatable.ENSURE_INDEX_OF_ENSURE_NODE
  • removed: const Locatable.ENSURE_TYPE
  • removed: const Locatable.FOR_LOOP_CHILD_INDEX
  • removed: const Locatable.FOR_LOOP_TYPE
  • removed: const Locatable.LEFT_SIDE_INDEX_OF_LOGICAL_OPERATOR_NODE
  • removed: const Locatable.LOGICAL_OPERATOR_TYPES
  • removed: const Locatable.NON_FOR_LOOP_TYPES
  • removed: const Locatable.NON_FOR_LOOP_TYPES_CHILD_INDEX
  • removed: constructor Locatable(*)
  • removed: method Assignment.reference_penetrable?()
  • removed: method Locatable.branch_body_name()
  • removed: method Locatable.branch_body_node()
  • removed: method Locatable.branch_id()
  • removed: method Locatable.branch_point_node()
  • removed: method Locatable.branch_type()
  • removed: method Locatable.inside_of_branch?()
  • removed: method Locatable.node()
  • removed: method Locatable.run_exclusively_with?(_)
  • removed: method Locatable.scope()
  • removed: module Locatable
  • added: const Branch.CLASSES_BY_TYPE
  • added: method Branchable.branch()
  • added: method Branchable.run_exclusively_with?(_)
  • added: method Scope.include?(_)
  • added: module Branch
  • added: module Branchable
  • added: property Scope.naked_top_level: reader
  • added: property Scope.naked_top_level?: reader
  • added: static method Branch.of(_, scope: …)
  • added: class And < Base
  • added: class Base < Struct.new(:child_node, :scope)
  • added: class Case < Base
  • added: class Ensure < Base
  • added: class For < Base
  • added: class If < Base
  • added: class Or < Base
  • added: class Rescue < Base
  • added: class Until < Base
  • added: class UntilPost < Base
  • added: class While < Base
  • added: class WhilePost < Base
  • added: method Base.==(_)
  • added: method Base.always_run?()
  • added: method Base.branched?()
  • added: method Base.control_node()
  • added: method Base.each_ancestor(include_self: …)
  • added: method Base.exclusive_with?(_)
  • added: method Base.hash()
  • added: method Base.may_jump_to_other_branch?()
  • added: method Base.may_run_incompletely?()
  • added: method Base.parent()
  • added: method Case.always_run?()
  • added: method Ensure.always_run?()
  • added: method ExceptionHandler.may_jump_to_other_branch?()
  • added: method ExceptionHandler.may_run_incompletely?()
  • added: method For.always_run?()
  • added: method LogicalOperator.always_run?()
  • added: method Rescue.always_run?()
  • added: method SimpleConditional.always_run?()
  • added: method SimpleConditional.conditional_clause?()
  • added: module ExceptionHandler
  • added: module LogicalOperator
  • added: module SimpleConditional
  • added: static method Base.classes()
  • added: static method Base.define_predicate(_, child_index: …)
  • added: static method Base.type()
  • removed: class InvalidBranchBodyError < StandardError