Skip to content

Upgrading rubocop 0.33 to 0.34

Review needed0.33.0 → 0.34.2New9Changed17Fixed40

Review neededUpgrade verdict

17 changed defaults.

  • 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.

  • added: class ResultCache
  • added: const ResultCache.NON_CHANGING
  • added: constructor ResultCache(_, _, _, _ = …)
  • added: method Config.to_s()
  • added: method ResultCache.load()
  • added: method ResultCache.save(_, _, _)
  • added: method ResultCache.valid?()
  • added: static method ResultCache.cleanup(_, _, _ = …)
  • added: static property ResultCache.inhibit_cleanup: accessor
  • added: static property ResultCache.source_checksum: accessor
  • changed: method ConfigurableNaming.valid_name?(_) → method ConfigurableNaming.valid_name?(_, _)
  • added: const AutocorrectAlignment.SPACE
  • added: method AutocorrectAlignment.indentation(_)
  • added: method AutocorrectAlignment.offset(_)
  • added: method ConfigurableNaming.class_emitter_method?(_, _)
  • added: method Cop.excluded_file?(_)
  • added: method MethodPreference.default_cop_config()
  • added: method MethodPreference.preferred_method(_)
  • added: method MethodPreference.preferred_methods()
  • added: module MethodPreference
  • removed: const FormatParameterMismatch.FIELDS_REGEX
  • removed: method FormatParameterMismatch.fields_regex()
  • added: class DuplicatedKey < Cop
  • added: const DuplicatedKey.LITERALS
  • added: const DuplicatedKey.MSG
  • added: const FormatParameterMismatch.FIELD_REGEX
  • added: const FormatParameterMismatch.KERNEL
  • added: const FormatParameterMismatch.NAMED_FIELD_REGEX
  • added: const FormatParameterMismatch.PERCENT
  • added: const FormatParameterMismatch.PERCENT_PERCENT
  • added: const FormatParameterMismatch.SHOVEL
  • added: const FormatParameterMismatch.SPLAT
  • added: const FormatParameterMismatch.STRING_TYPES
  • added: method DuplicatedKey.on_hash(_)
  • added: method EndAlignment.on_case(_)
  • added: method DeprecatedClassMethod.class_nodes()
  • added: class CaseWhenSplat < Cop
  • added: const CaseWhenSplat.ARRAY_MSG
  • added: const CaseWhenSplat.MSG
  • added: const CaseWhenSplat.OPEN_BRACKET
  • added: const CaseWhenSplat.PERCENT_CAPITAL_I
  • added: const CaseWhenSplat.PERCENT_CAPITAL_W
  • added: const CaseWhenSplat.PERCENT_I
  • added: const CaseWhenSplat.PERCENT_W
  • added: const StringReplacement.BANG
  • added: const StringReplacement.DELETE
  • added: const StringReplacement.SINGLE_QUOTE
  • added: const StringReplacement.TR
  • added: method CaseWhenSplat.autocorrect(_)
  • added: method CaseWhenSplat.on_case(_)
  • removed: method EmptyLineBetweenDefs.on_def(_)
  • added: class MutableConstant < Cop
  • added: class RedundantFreeze < Cop
  • added: class StringMethods < Cop
  • added: const MutableConstant.MSG
  • added: const MutableConstant.MUTABLE_TYPES
  • added: const Next.EACH_
  • added: const Next.EXIT_TYPES
  • added: const RedundantFreeze.MSG
  • added: const RedundantFreeze.TARGET_NODES
  • added: const StringMethods.MSG
  • added: method EmptyLineBetweenDefs.on_method_def(_, _, _, _)
  • added: method MutableConstant.autocorrect(_)
  • added: method MutableConstant.on_casgn(_)
  • added: method RedundantFreeze.autocorrect(_)
  • added: method RedundantFreeze.on_send(_)
  • added: method RescueModifier.autocorrect(_)
  • added: method RescueModifier.on_resbody(_)
  • added: method StringMethods.autocorrect(_)
  • added: method StringMethods.on_send(_)
  • added: method SymbolProc.autocorrect_method(_, _, _, _)
  • added: method SymbolProc.autocorrect_no_args(_, _, _)
  • added: method SymbolProc.autocorrect_with_args(_, _, _, _)
  • added: method SymbolProc.begin_pos_for_replacement(_)
  • added: method SymbolProc.block_range_with_space(_)
  • added: method SymbolProc.super?(_)
  • removed: protected method GenericCorrector.indent()
  • removed: protected method GenericCorrector.space_offset()
  • removed: protected method ModifierCorrector.space_offset()
  • removed: protected method RescueCorrector.space_offset()
  • removed: protected property GenericCorrector.indentation_width: reader
  • added: property GenericCorrector.config: reader
  • added: property GenericCorrector.node: reader
  • added: const ProgressFormatter.DOT
  • added: const ProgressFormatter.GREEN_DOT
  • added: constructor ProgressFormatter(_)