Upgrading rubocop 0.75 to 0.76
Breaking0.75.1 → 0.76.0Breaking1Changed3Fixed6
BreakingUpgrade verdict
1 breaking change.
In plain terms
- Several style check names changed, so configurations that reference the old names must be updated.
Must act 1 item needs code or config changes
What you must change
Breaking1
Renames
Unneeded* cops to Redundant*, e.g. Style/UnneededPercentQ becomes Style/RedundantPercentQ.Style/UnneededPercentQStyle/RedundantPercentQAPI changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- removed:
const CommentConfig.UNNEEDED_DISABLE - removed:
method OptionsValidator.only_includes_unneeded_disable?() - changed:
method ConfigLoaderResolver.resolve_inheritance_from_gems(_, _) → method ConfigLoaderResolver.resolve_inheritance_from_gems(_) - added:
const CommentConfig.REDUNDANT_DISABLE - added:
method Config.internal?() - added:
method OptionsValidator.only_includes_redundant_disable?() - added:
method OptionsValidator.validate_cop_options()
- added:
class ReturnNode < Node - added:
method Node.boolean_type?() - added:
method ReturnNode.arguments()
- removed:
class UnneededCopDisableDirective < Cop - removed:
class UnneededCopEnableDirective < Cop - removed:
class UnneededRequireStatement < Cop - removed:
class UnneededSplatExpansion < Cop - removed:
const UnneededCopDisableDirective.COP_NAME - removed:
const UnneededCopEnableDirective.MSG - removed:
const UnneededRequireStatement.MSG - removed:
const UnneededSplatExpansion.ARRAY_PARAM_MSG - removed:
const UnneededSplatExpansion.ASSIGNMENT_TYPES - removed:
const UnneededSplatExpansion.MSG - removed:
const UnneededSplatExpansion.PERCENT_CAPITAL_I - removed:
const UnneededSplatExpansion.PERCENT_CAPITAL_W - removed:
const UnneededSplatExpansion.PERCENT_I - removed:
const UnneededSplatExpansion.PERCENT_W - removed:
method UnneededCopDisableDirective.autocorrect(_) - removed:
method UnneededCopDisableDirective.check(_, _, _) - removed:
method UnneededCopEnableDirective.autocorrect(_) - removed:
method UnneededCopEnableDirective.investigate(_) - removed:
method UnneededRequireStatement.autocorrect(_) - removed:
method UnneededRequireStatement.on_send(_) - removed:
method UnneededSplatExpansion.autocorrect(_) - removed:
method UnneededSplatExpansion.on_splat(_) - added:
class RedundantCopDisableDirective < Cop - added:
class RedundantCopEnableDirective < Cop - added:
class RedundantRequireStatement < Cop - added:
class RedundantSplatExpansion < Cop - added:
const RedundantCopDisableDirective.COP_NAME - added:
const RedundantCopEnableDirective.MSG - added:
const RedundantRequireStatement.MSG - added:
const RedundantSplatExpansion.ARRAY_PARAM_MSG - added:
const RedundantSplatExpansion.ASSIGNMENT_TYPES - added:
const RedundantSplatExpansion.MSG - added:
const RedundantSplatExpansion.PERCENT_CAPITAL_I - added:
const RedundantSplatExpansion.PERCENT_CAPITAL_W - added:
const RedundantSplatExpansion.PERCENT_I - added:
const RedundantSplatExpansion.PERCENT_W - added:
method RedundantCopDisableDirective.autocorrect(_) - added:
method RedundantCopDisableDirective.check(_, _, _) - added:
method RedundantCopEnableDirective.autocorrect(_) - added:
method RedundantCopEnableDirective.investigate(_) - added:
method RedundantRequireStatement.autocorrect(_) - added:
method RedundantRequireStatement.on_send(_) - added:
method RedundantSplatExpansion.autocorrect(_) - added:
method RedundantSplatExpansion.on_splat(_)
- removed:
method AbcSizeCalculator.node_has_else_branch?(_) - added:
method AbcSizeCalculator.else_branch?(_) - added:
method AbcSizeCalculator.evaluate_condition_node(_)
- removed:
class UnneededCapitalW < Cop - removed:
class UnneededCondition < Cop - removed:
class UnneededInterpolation < Cop - removed:
class UnneededPercentQ < Cop - removed:
class UnneededSort < Cop - removed:
const LineEndConcatenation.COMPLEX_STRING_EDGE_TOKEN_TYPES - removed:
const UnneededCapitalW.MSG - removed:
const UnneededCondition.MSG - removed:
const UnneededCondition.UNNEEDED_CONDITION - removed:
const UnneededInterpolation.MSG - removed:
const UnneededPercentQ.DYNAMIC_MSG - removed:
const UnneededPercentQ.EMPTY - removed:
const UnneededPercentQ.ESCAPED_NON_BACKSLASH - removed:
const UnneededPercentQ.MSG - removed:
const UnneededPercentQ.PERCENT_CAPITAL_Q - removed:
const UnneededPercentQ.PERCENT_Q - removed:
const UnneededPercentQ.QUOTE - removed:
const UnneededPercentQ.SINGLE_QUOTE - removed:
const UnneededPercentQ.STRING_INTERPOLATION_REGEXP - removed:
const UnneededSort.MSG - removed:
method UnneededCapitalW.autocorrect(_) - removed:
method UnneededCapitalW.on_array(_) - removed:
method UnneededCondition.autocorrect(_) - removed:
method UnneededCondition.on_if(_) - removed:
method UnneededInterpolation.autocorrect(_) - removed:
method UnneededInterpolation.on_dstr(_) - removed:
method UnneededPercentQ.autocorrect(_) - removed:
method UnneededPercentQ.on_dstr(_) - removed:
method UnneededPercentQ.on_str(_) - removed:
method UnneededSort.autocorrect(_) - removed:
method UnneededSort.on_send(_) - removed:
static method UnneededInterpolation.autocorrect_incompatible_with() - changed:
method NestedModifier.new_expression(_, _) → method NestedModifier.new_expression(_) - added:
class RedundantCapitalW < Cop - added:
class RedundantCondition < Cop - added:
class RedundantInterpolation < Cop - added:
class RedundantPercentQ < Cop - added:
class RedundantSort < Cop - added:
const LineEndConcatenation.COMPLEX_STRING_BEGIN_TOKEN - added:
const LineEndConcatenation.COMPLEX_STRING_END_TOKEN - added:
const RedundantCapitalW.MSG - added:
const RedundantCondition.MSG - added:
const RedundantCondition.REDUNDANT_CONDITION - added:
const RedundantInterpolation.MSG - added:
const RedundantPercentQ.DYNAMIC_MSG - added:
const RedundantPercentQ.EMPTY - added:
const RedundantPercentQ.ESCAPED_NON_BACKSLASH - added:
const RedundantPercentQ.MSG - added:
const RedundantPercentQ.PERCENT_CAPITAL_Q - added:
const RedundantPercentQ.PERCENT_Q - added:
const RedundantPercentQ.QUOTE - added:
const RedundantPercentQ.SINGLE_QUOTE - added:
const RedundantPercentQ.STRING_INTERPOLATION_REGEXP - added:
const RedundantSort.MSG - added:
method InverseMethods.correct_inverse_method(_) - added:
method RedundantCapitalW.autocorrect(_) - added:
method RedundantCapitalW.on_array(_) - added:
method RedundantCondition.autocorrect(_) - added:
method RedundantCondition.on_if(_) - added:
method RedundantInterpolation.autocorrect(_) - added:
method RedundantInterpolation.on_dstr(_) - added:
method RedundantPercentQ.autocorrect(_) - added:
method RedundantPercentQ.on_dstr(_) - added:
method RedundantPercentQ.on_str(_) - added:
method RedundantSort.autocorrect(_) - added:
method RedundantSort.on_send(_) - added:
static method RedundantInterpolation.autocorrect_incompatible_with()
- changed:
constructor FormatSequence(_, **) → constructor FormatSequence(_)