Skip to content

Upgrading rubocop 0.90 to 0.91

Review needed0.90.0 → 0.91.1New7Changed1Fixed45Other3

Review neededUpgrade verdict

1 changed default.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

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

  • removed: module TokensUtil
  • removed: static method TokensUtil.index_of_first_token(_)
  • removed: static method TokensUtil.index_of_last_token(_)
  • removed: static method TokensUtil.tokens(_)
  • added: class DirectiveComment
  • added: constructor DirectiveComment(_)
  • added: method DirectiveComment.cops()
  • added: method DirectiveComment.match?(_)
  • added: method DirectiveComment.range()
  • added: method OptionsValidator.validate_cache_enabled_for_cache_root()
  • added: property DirectiveComment.comment: reader
  • added: static property ResultCache.rubocop_required_features: accessor
  • added: const ExecuteRunner.INTEGRATION_FORMATTERS
  • added: const HashTransformMethod.RESTRICT_ON_SEND
  • added: const GemComment.RESTRICT_ON_SEND
  • added: const InsecureProtocolSource.RESTRICT_ON_SEND
  • added: const MethodNameEqual.RESTRICT_ON_SEND
  • added: const NodeTypePredicate.RESTRICT_ON_SEND
  • added: const OffenseLocationKeyword.RESTRICT_ON_SEND
  • added: const RedundantLocationArgument.RESTRICT_ON_SEND
  • added: const RedundantMessageArgument.RESTRICT_ON_SEND
  • removed: const SpaceInsideReferenceBrackets.BRACKET_METHODS
  • added: class BeginEndAlignment < Base
  • added: const BeginEndAlignment.MSG
  • added: const SpaceInsideReferenceBrackets.RESTRICT_ON_SEND
  • added: method BeginEndAlignment.on_kwbegin(_)
  • removed: const Debugger.DEBUGGER_METHODS
  • removed: const DeprecatedClassMethods.DEPRECATED_METHODS
  • removed: const DuplicateMethods.METHOD_DEF_METHODS
  • removed: const FormatParameterMismatch.FORMAT_METHODS
  • added: class ConstantDefinitionInBlock < Base
  • added: class IdentityComparison < Base
  • added: class UselessTimes < Base
  • added: const BigDecimalNew.RESTRICT_ON_SEND
  • added: const ConstantDefinitionInBlock.MSG
  • added: const Debugger.RESTRICT_ON_SEND
  • added: const DeprecatedClassMethods.RESTRICT_ON_SEND
  • added: const DuplicateMethods.RESTRICT_ON_SEND
  • added: const DuplicateRequire.RESTRICT_ON_SEND
  • added: const EachWithObjectArgument.RESTRICT_ON_SEND
  • added: const ErbNewArguments.RESTRICT_ON_SEND
  • added: const FloatComparison.RESTRICT_ON_SEND
  • added: const FormatParameterMismatch.RESTRICT_ON_SEND
  • added: const IdentityComparison.MSG
  • added: const IdentityComparison.RESTRICT_ON_SEND
  • added: const InheritException.RESTRICT_ON_SEND
  • added: const MultipleComparison.COMPARISON_METHODS
  • added: const MultipleComparison.RESTRICT_ON_SEND
  • added: const NumberConversion.RESTRICT_ON_SEND
  • added: const OutOfRangeRegexpRef.RESTRICT_ON_SEND
  • added: const RaiseException.RESTRICT_ON_SEND
  • added: const RandOne.RESTRICT_ON_SEND
  • added: const RedundantRequireStatement.RESTRICT_ON_SEND
  • added: const SendWithMixinArgument.RESTRICT_ON_SEND
  • added: const SendWithMixinArgument.SEND_METHODS
  • added: const StructNewOverride.RESTRICT_ON_SEND
  • added: const UriEscapeUnescape.METHOD_NAMES
  • added: const UriEscapeUnescape.RESTRICT_ON_SEND
  • added: const UriRegexp.RESTRICT_ON_SEND
  • added: const UselessTimes.MSG
  • added: const UselessTimes.RESTRICT_ON_SEND
  • added: method ConstantDefinitionInBlock.on_casgn(_)
  • added: method ConstantDefinitionInBlock.on_class(_)
  • added: method ConstantDefinitionInBlock.on_module(_)
  • added: method IdentityComparison.on_send(_)
  • added: method UselessTimes.on_send(_)
  • added: const Eval.RESTRICT_ON_SEND
  • added: const JSONLoad.RESTRICT_ON_SEND
  • added: const MarshalLoad.RESTRICT_ON_SEND
  • added: const Open.RESTRICT_ON_SEND
  • added: const YAMLLoad.RESTRICT_ON_SEND
  • removed: const AccessModifierDeclarations.ACCESS_MODIFIERS
  • removed: const EvalWithLocation.EVAL_METHODS
  • removed: const FormatString.FORMAT_METHODS
  • removed: const NumericPredicate.COMPARISON_METHODS
  • removed: const RedundantException.RAISE_METHODS
  • removed: const RedundantSort.SORT_METHODS
  • removed: const ZeroLengthPredicate.LENGTH_METHODS
  • removed: method CommentedKeyword.investigate(_)
  • removed: method ConditionalAssignment.autocorrect(_)
  • removed: method RedundantConditional.autocorrect(_)
  • removed: method RedundantPercentQ.autocorrect(_)
  • removed: method RedundantReturn.autocorrect(_)
  • removed: method RedundantSelf.autocorrect(_)
  • removed: method RedundantSort.autocorrect(_)
  • removed: method RedundantSortBy.autocorrect(_)
  • removed: method RescueStandardError.autocorrect(_)
  • changed: class CommentedKeyword < Cop → class CommentedKeyword < Base
  • changed: class ConditionalAssignment < Cop → class ConditionalAssignment < Base
  • changed: class MultilineBlockChain < Cop → class MultilineBlockChain < Base
  • changed: class RedundantConditional < Cop → class RedundantConditional < Base
  • changed: class RedundantPercentQ < Cop → class RedundantPercentQ < Base
  • changed: class RedundantReturn < Cop → class RedundantReturn < Base
  • changed: class RedundantSelf < Cop → class RedundantSelf < Base
  • changed: class RedundantSort < Cop → class RedundantSort < Base
  • changed: class RedundantSortBy < Cop → class RedundantSortBy < Base
  • changed: class RescueStandardError < Cop → class RescueStandardError < Base
  • changed: static method CaseCorrector.correct(_, _) → static method CaseCorrector.correct(_, _, _)
  • changed: static method CaseCorrector.move_assignment_inside_condition(_) → static method CaseCorrector.move_assignment_inside_condition(_, _)
  • changed: static method IfCorrector.correct(_, _) → static method IfCorrector.correct(_, _, _)
  • changed: static method IfCorrector.move_assignment_inside_condition(_) → static method IfCorrector.move_assignment_inside_condition(_, _)
  • changed: static method TernaryCorrector.correct(_) → static method TernaryCorrector.correct(_, _)
  • changed: static method TernaryCorrector.move_assignment_inside_condition(_) → static method TernaryCorrector.move_assignment_inside_condition(_, _)
  • added: const AccessModifierDeclarations.RESTRICT_ON_SEND
  • added: const Alias.RESTRICT_ON_SEND
  • added: const ArrayJoin.RESTRICT_ON_SEND
  • added: const Attr.RESTRICT_ON_SEND
  • added: const AutoResourceCleanup.RESTRICT_ON_SEND
  • added: const CaseEquality.RESTRICT_ON_SEND
  • added: const ClassCheck.RESTRICT_ON_SEND
  • added: const ClassMethodsDefinitions.MSG_SCLASS
  • added: const ClassVars.RESTRICT_ON_SEND
  • added: const Dir.RESTRICT_ON_SEND
  • added: const DoubleNegation.RESTRICT_ON_SEND
  • added: const EmptyLiteral.RESTRICT_ON_SEND
  • added: const EvalWithLocation.RESTRICT_ON_SEND
  • added: const EvenOdd.RESTRICT_ON_SEND
  • added: const ExpandPathArguments.RESTRICT_ON_SEND
  • added: const FloatDivision.RESTRICT_ON_SEND
  • added: const FormatString.RESTRICT_ON_SEND
  • added: const ImplicitRuntimeError.RESTRICT_ON_SEND
  • added: const LambdaCall.RESTRICT_ON_SEND
  • added: const MixinUsage.RESTRICT_ON_SEND
  • added: const NilComparison.RESTRICT_ON_SEND
  • added: const NonNilCheck.RESTRICT_ON_SEND
  • added: const Not.RESTRICT_ON_SEND
  • added: const NumericPredicate.RESTRICT_ON_SEND
  • added: const OptionalBooleanParameter.METHODS_EXCLUDED
  • added: const PreferredHashMethods.RESTRICT_ON_SEND
  • added: const RaiseArgs.RESTRICT_ON_SEND
  • added: const RandomWithOffset.RESTRICT_ON_SEND
  • added: const RedundantException.RESTRICT_ON_SEND
  • added: const RedundantFileExtensionInRequire.RESTRICT_ON_SEND
  • added: const RedundantFreeze.RESTRICT_ON_SEND
  • added: const RedundantSort.RESTRICT_ON_SEND
  • added: const Sample.RESTRICT_ON_SEND
  • added: const Send.RESTRICT_ON_SEND
  • added: const SignalException.RESTRICT_ON_SEND
  • added: const SingleArgumentDig.RESTRICT_ON_SEND
  • added: const SlicingWithRange.RESTRICT_ON_SEND
  • added: const StderrPuts.RESTRICT_ON_SEND
  • added: const StringConcatenation.RESTRICT_ON_SEND
  • added: const Strip.RESTRICT_ON_SEND
  • added: const UnpackFirst.RESTRICT_ON_SEND
  • added: const ZeroLengthPredicate.RESTRICT_ON_SEND
  • added: method CommentedKeyword.on_new_investigation()
  • changed: constructor InfiniteCorrectionLoop(_, _) → constructor InfiniteCorrectionLoop(_, _, loop_start: …)