Upgrading rubocop 0.84 to 0.85
Breaking0.84.0 → 0.85.1Breaking1New8Fixed12
BreakingUpgrade verdict
1 breaking change.
In plain terms
- (Breaking) Remove support for unindent/active_support/powerpack from Layout/HeredocIndentation, so it only recommends using squiggy heredoc.
Must act 1 item needs code or config changes
What you must change
Breaking1
(Breaking) Remove support for unindent/active_support/powerpack from Layout/HeredocIndentation, so it only recommends using squiggy heredoc.
Layout/HeredocIndentationAPI changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- removed:
method CopHelper.autocorrect_source_with_loop(_, _ = …)
- added:
method ConfigStore.for_dir(_) - added:
method ConfigStore.for_file(_) - added:
method OptionsValidator.validate_display_only_failed()
- removed:
method Team.cops() - removed:
static property Cop.registry: reader - changed:
constructor Team(_, _, _ = …) → constructor Team(_, _ = …, _ = …) - changed:
method Registry.enabled(_, _, _ = …) → method Registry.enabled(_, _ = …, _ = …) - added:
method Registry.dismiss(_) - added:
module RegexpLiteralHelp - added:
property Registry.options: reader - added:
property Team.cops: reader - added:
static method Cop.exclude_from_registry() - added:
static method Cop.registry() - added:
static method Registry.all() - added:
static method Registry.qualified_cop_name(_, _) - added:
static method Registry.with_temporary_global(_ = …) - added:
static method Team.mobilize(_, _, _ = …) - added:
static method Team.mobilize_cops(_, _, _ = …) - added:
static method Team.new(_, _, _ = …) - added:
static property Registry.global: reader
- added:
const GemComment.CHECKED_OPTIONS_CONFIG - added:
const GemComment.VERSION_SPECIFIERS_OPTION
- removed:
const HeredocIndentation.LIBRARY_MSG - removed:
const HeredocIndentation.RUBY23_TYPE_MSG - removed:
const HeredocIndentation.RUBY23_WIDTH_MSG - removed:
const HeredocIndentation.STRIP_METHODS - added:
const HeredocIndentation.TYPE_MSG - added:
const HeredocIndentation.WIDTH_MSG
- added:
class MixedRegexpCaptureTypes < Cop - added:
const FormatParameterMismatch.MSG_INVALID - added:
const MixedRegexpCaptureTypes.MSG - added:
method MixedRegexpCaptureTypes.on_regexp(_)
- removed:
const RedundantConditional.COMPARISON_OPERATORS - added:
class RedundantRegexpCharacterClass < Cop - added:
class RedundantRegexpEscape < Cop - added:
const RedundantConditional.COMPARISON_OPERATOR_MATCHER - added:
const RedundantRegexpCharacterClass.MSG_REDUNDANT_CHARACTER_CLASS - added:
const RedundantRegexpCharacterClass.PATTERN - added:
const RedundantRegexpEscape.ALLOWED_ALWAYS_ESCAPES - added:
const RedundantRegexpEscape.ALLOWED_OUTSIDE_CHAR_CLASS_METACHAR_ESCAPES - added:
const RedundantRegexpEscape.ALLOWED_WITHIN_CHAR_CLASS_METACHAR_ESCAPES - added:
const RedundantRegexpEscape.MSG_REDUNDANT_ESCAPE - added:
method RedundantRegexpCharacterClass.autocorrect(_) - added:
method RedundantRegexpCharacterClass.each_redundant_character_class(_) - added:
method RedundantRegexpCharacterClass.on_regexp(_) - added:
method RedundantRegexpEscape.autocorrect(_) - added:
method RedundantRegexpEscape.on_regexp(_)
- added:
method FormatString.valid?()
- added:
method JUnitFormatter.offenses_for_cop(_, _) - added:
method JUnitFormatter.relevant_for_output?(_, _)
- changed:
method ExpectOffense.expect_correction(_) → method ExpectOffense.expect_correction(_, loop: …) - changed:
method ExpectOffense.expect_offense(_, _ = …) → method ExpectOffense.expect_offense(_, _ = …, **) - added:
method ExpectOffense.format_offense(_, **)