Skip to content

Upgrading rubocop 0.76 to 0.77

Breaking0.76.0 → 0.77.0Breaking3Fixed6

BreakingUpgrade verdict

3 breaking changes.

  • The SafeMode module is gone, so any code or config relying on it will break.
  • Some cop names change, so existing configuration referring to the old names may need updating.
  • Configuration options and cop names using Whitelist and Blacklist are renamed, so old configs may need updating.
3 items need code or config changes
Breaking3
Removes the SafeMode module.
SafeMode
Further standardisation of cop names.
Replaces usages of the terms Whitelist and Blacklist with better alternatives.

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

  • removed: const CLI.PHASE_1
  • removed: const CLI.PHASE_1_DISABLED
  • removed: const CLI.PHASE_1_OVERRIDDEN
  • removed: const CLI.PHASE_2
  • changed: constructor ResultCache(_, _, _, _ = …) → constructor ResultCache(_, _, _, _, _ = …)
  • added: class Environment
  • added: constructor Environment(_, _, _)
  • added: method Environment.run(_)
  • added: module Command
  • added: property Environment.config_store: reader
  • added: property Environment.options: reader
  • added: property Environment.paths: reader
  • added: static method Command.run(_, _)
  • added: class AutoGenerateConfig < Base
  • added: class Base
  • added: class ExecuteRunner < Base
  • added: class InitDotfile < Base
  • added: class ShowCops < Base
  • added: class Version < Base
  • added: const AutoGenerateConfig.PHASE_1
  • added: const AutoGenerateConfig.PHASE_1_DISABLED
  • added: const AutoGenerateConfig.PHASE_1_OVERRIDDEN
  • added: const AutoGenerateConfig.PHASE_2
  • added: const InitDotfile.DOTFILE
  • added: constructor Base(_)
  • added: method AutoGenerateConfig.run()
  • added: method ExecuteRunner.run()
  • added: method InitDotfile.run()
  • added: method ShowCops.run()
  • added: method Version.run()
  • added: property Base.env: reader
  • added: static method Base.by_command_name(_)
  • added: static property Base.command_name: accessor
  • removed: module HashAlignment
  • removed: module SafeMode
  • added: method Cop.external_dependency_checksum()
  • added: method Team.external_dependency_checksum()
  • added: module HashAlignmentStyles
  • removed: class KeyAlignment
  • removed: class SeparatorAlignment
  • removed: class TableAlignment
  • removed: constructor TableAlignment()
  • removed: method KeyAlignment.checkable_layout?(_)
  • removed: method KeyAlignment.deltas(_, _)
  • removed: method KeyAlignment.deltas_for_first_pair(_, _)
  • removed: method SeparatorAlignment.deltas_for_first_pair(*)
  • removed: method TableAlignment.deltas_for_first_pair(_, _)
  • removed: method ValueAlignment.checkable_layout?(_)
  • removed: method ValueAlignment.deltas(_, _)
  • removed: module ValueAlignment
  • added: class KeyAlignment
  • added: class SeparatorAlignment
  • added: class TableAlignment
  • added: constructor TableAlignment()
  • added: method KeyAlignment.checkable_layout?(_)
  • added: method KeyAlignment.deltas(_, _)
  • added: method KeyAlignment.deltas_for_first_pair(_, _)
  • added: method SeparatorAlignment.deltas_for_first_pair(*)
  • added: method TableAlignment.deltas_for_first_pair(_, _)
  • added: method ValueAlignment.checkable_layout?(_)
  • added: method ValueAlignment.deltas(_, _)
  • added: module ValueAlignment
  • added: class MethodNameEqual < Cop
  • added: const MethodNameEqual.MSG
  • added: method MethodNameEqual.autocorrect(_)
  • added: method MethodNameEqual.on_send(_)
  • removed: class AlignArguments < Cop
  • removed: class AlignArray < Cop
  • removed: class AlignHash < Cop
  • removed: class AlignParameters < Cop
  • removed: class IndentAssignment < Cop
  • removed: class IndentFirstArgument < Cop
  • removed: class IndentFirstArrayElement < Cop
  • removed: class IndentFirstHashElement < Cop
  • removed: class IndentFirstParameter < Cop
  • removed: class IndentHeredoc < Cop
  • removed: class LeadingBlankLines < Cop
  • removed: class TrailingBlankLines < Cop
  • removed: const AlignArguments.ALIGN_PARAMS_MSG
  • removed: const AlignArguments.FIXED_INDENT_MSG
  • removed: const AlignArray.MSG
  • removed: const AlignHash.MSG
  • removed: const AlignParameters.ALIGN_PARAMS_MSG
  • removed: const AlignParameters.FIXED_INDENT_MSG
  • removed: const IndentAssignment.MSG
  • removed: const IndentFirstArgument.MSG
  • removed: const IndentFirstArrayElement.MSG
  • removed: const IndentFirstHashElement.MSG
  • removed: const IndentFirstParameter.MSG
  • removed: const IndentHeredoc.LIBRARY_MSG
  • removed: const IndentHeredoc.RUBY23_TYPE_MSG
  • removed: const IndentHeredoc.RUBY23_WIDTH_MSG
  • removed: const IndentHeredoc.STRIP_METHODS
  • removed: const LeadingBlankLines.MSG
  • removed: method AlignArguments.autocorrect(_)
  • removed: method AlignArguments.on_csend(_)
  • removed: method AlignArguments.on_send(_)
  • removed: method AlignArray.autocorrect(_)
  • removed: method AlignArray.on_array(_)
  • removed: method AlignHash.autocorrect(_)
  • removed: method AlignHash.on_hash(_)
  • removed: method AlignHash.on_send(_)
  • removed: method AlignHash.on_super(_)
  • removed: method AlignHash.on_yield(_)
  • removed: method AlignParameters.autocorrect(_)
  • removed: method AlignParameters.on_def(_)
  • removed: method AlignParameters.on_defs(_)
  • removed: method IndentAssignment.autocorrect(_)
  • removed: method IndentAssignment.check_assignment(_, _)
  • removed: method IndentAssignment.leftmost_multiple_assignment(_)
  • removed: method IndentFirstArgument.autocorrect(_)
  • removed: method IndentFirstArgument.on_csend(_)
  • removed: method IndentFirstArgument.on_send(_)
  • removed: method IndentFirstArrayElement.autocorrect(_)
  • removed: method IndentFirstArrayElement.on_array(_)
  • removed: method IndentFirstArrayElement.on_csend(_)
  • removed: method IndentFirstArrayElement.on_send(_)
  • removed: method IndentFirstHashElement.autocorrect(_)
  • removed: method IndentFirstHashElement.on_csend(_)
  • removed: method IndentFirstHashElement.on_hash(_)
  • removed: method IndentFirstHashElement.on_send(_)
  • removed: method IndentFirstParameter.autocorrect(_)
  • removed: method IndentFirstParameter.on_def(_)
  • removed: method IndentFirstParameter.on_defs(_)
  • removed: method IndentHeredoc.autocorrect(_)
  • removed: method IndentHeredoc.on_heredoc(_)
  • removed: method LeadingBlankLines.autocorrect(_)
  • removed: method LeadingBlankLines.investigate(_)
  • removed: method TrailingBlankLines.autocorrect(_)
  • removed: method TrailingBlankLines.investigate(_)
  • removed: property AlignHash.column_deltas: accessor
  • removed: property AlignHash.offences_by: accessor
  • added: class ArgumentAlignment < Cop
  • added: class ArrayAlignment < Cop
  • added: class AssignmentIndentation < Cop
  • added: class FirstArgumentIndentation < Cop
  • added: class FirstArrayElementIndentation < Cop
  • added: class FirstHashElementIndentation < Cop
  • added: class FirstParameterIndentation < Cop
  • added: class HashAlignment < Cop
  • added: class HeredocIndentation < Cop
  • added: class LeadingEmptyLines < Cop
  • added: class ParameterAlignment < Cop
  • added: class TrailingEmptyLines < Cop
  • added: const ArgumentAlignment.ALIGN_PARAMS_MSG
  • added: const ArgumentAlignment.FIXED_INDENT_MSG
  • added: const ArrayAlignment.MSG
  • added: const AssignmentIndentation.MSG
  • added: const FirstArgumentIndentation.MSG
  • added: const FirstArrayElementIndentation.MSG
  • added: const FirstHashElementIndentation.MSG
  • added: const FirstParameterIndentation.MSG
  • added: const HashAlignment.MSG
  • added: const HeredocIndentation.LIBRARY_MSG
  • added: const HeredocIndentation.RUBY23_TYPE_MSG
  • added: const HeredocIndentation.RUBY23_WIDTH_MSG
  • added: const HeredocIndentation.STRIP_METHODS
  • added: const LeadingEmptyLines.MSG
  • added: const ParameterAlignment.ALIGN_PARAMS_MSG
  • added: const ParameterAlignment.FIXED_INDENT_MSG
  • added: const SpaceAroundKeyword.ACCEPT_NAMESPACE_OPERATOR
  • added: const SpaceAroundKeyword.NAMESPACE_OPERATOR
  • added: method ArgumentAlignment.autocorrect(_)
  • added: method ArgumentAlignment.on_csend(_)
  • added: method ArgumentAlignment.on_send(_)
  • added: method ArrayAlignment.autocorrect(_)
  • added: method ArrayAlignment.on_array(_)
  • added: method AssignmentIndentation.autocorrect(_)
  • added: method AssignmentIndentation.check_assignment(_, _)
  • added: method AssignmentIndentation.leftmost_multiple_assignment(_)
  • added: method FirstArgumentIndentation.autocorrect(_)
  • added: method FirstArgumentIndentation.on_csend(_)
  • added: method FirstArgumentIndentation.on_send(_)
  • added: method FirstArrayElementIndentation.autocorrect(_)
  • added: method FirstArrayElementIndentation.on_array(_)
  • added: method FirstArrayElementIndentation.on_csend(_)
  • added: method FirstArrayElementIndentation.on_send(_)
  • added: method FirstHashElementIndentation.autocorrect(_)
  • added: method FirstHashElementIndentation.on_csend(_)
  • added: method FirstHashElementIndentation.on_hash(_)
  • added: method FirstHashElementIndentation.on_send(_)
  • added: method FirstParameterIndentation.autocorrect(_)
  • added: method FirstParameterIndentation.on_def(_)
  • added: method FirstParameterIndentation.on_defs(_)
  • added: method HashAlignment.autocorrect(_)
  • added: method HashAlignment.on_hash(_)
  • added: method HashAlignment.on_send(_)
  • added: method HashAlignment.on_super(_)
  • added: method HashAlignment.on_yield(_)
  • added: method HeredocIndentation.autocorrect(_)
  • added: method HeredocIndentation.on_heredoc(_)
  • added: method LeadingEmptyLines.autocorrect(_)
  • added: method LeadingEmptyLines.investigate(_)
  • added: method ParameterAlignment.autocorrect(_)
  • added: method ParameterAlignment.on_def(_)
  • added: method ParameterAlignment.on_defs(_)
  • added: method TrailingEmptyLines.autocorrect(_)
  • added: method TrailingEmptyLines.investigate(_)
  • added: property HashAlignment.column_deltas: accessor
  • added: property HashAlignment.offences_by: accessor
  • removed: class DuplicatedKey < Cop
  • removed: class HandleExceptions < Cop
  • removed: class MultipleCompare < Cop
  • removed: class StringConversionInInterpolation < Cop
  • removed: const DuplicatedKey.MSG
  • removed: const HandleExceptions.MSG
  • removed: const MultipleCompare.MSG
  • removed: const StringConversionInInterpolation.MSG_DEFAULT
  • removed: const StringConversionInInterpolation.MSG_SELF
  • removed: method DuplicatedKey.on_hash(_)
  • removed: method HandleExceptions.on_resbody(_)
  • removed: method MultipleCompare.autocorrect(_)
  • removed: method MultipleCompare.on_send(_)
  • removed: method StringConversionInInterpolation.autocorrect(_)
  • removed: method StringConversionInInterpolation.on_interpolation(_)
  • added: class DuplicateHashKey < Cop
  • added: class MultipleComparison < Cop
  • added: class RedundantStringCoercion < Cop
  • added: class SuppressedException < Cop
  • added: const DuplicateHashKey.MSG
  • added: const MultipleComparison.MSG
  • added: const RedundantStringCoercion.MSG_DEFAULT
  • added: const RedundantStringCoercion.MSG_SELF
  • added: const SuppressedException.MSG
  • added: method DuplicateHashKey.on_hash(_)
  • added: method MultipleComparison.autocorrect(_)
  • added: method MultipleComparison.on_send(_)
  • added: method RedundantStringCoercion.autocorrect(_)
  • added: method RedundantStringCoercion.on_interpolation(_)
  • added: method SuppressedException.on_resbody(_)
  • added: method LineLength.investigate(_)
  • removed: class UncommunicativeBlockParamName < Cop
  • removed: class UncommunicativeMethodParamName < Cop
  • removed: method UncommunicativeBlockParamName.on_block(_)
  • removed: method UncommunicativeMethodParamName.on_def(_)
  • removed: method UncommunicativeMethodParamName.on_defs(_)
  • added: class BlockParameterName < Cop
  • added: class MethodParameterName < Cop
  • added: method BlockParameterName.on_block(_)
  • added: method MethodParameterName.on_def(_)
  • added: method MethodParameterName.on_defs(_)