Skip to content

Upgrading rubocop 0.29 to 0.30

Breaking0.29.1 → 0.30.1Breaking2New26Changed5Fixed30

BreakingUpgrade verdict

2 breaking changes.

  • Renames `UnneededPercentX` to `CommandLiteral`, configurable to enforce `%x` or backticks and ignoring heredoc commands.
  • Removes the `MaxSlashes` option for `RegexpLiteral`, replacing it with configuration to enforce `%r` or slashes.
2 items need code or config changes
Breaking2
Renames UnneededPercentX to CommandLiteral, configurable to enforce %x or backticks and ignoring heredoc commands.
UnneededPercentXCommandLiteral
Removes the MaxSlashes option for RegexpLiteral, replacing it with configuration to enforce %r or slashes.
RegexpLiteralMaxSlashes

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

  • added: method Config.possibly_include_hidden?()
  • added: static method PathUtil.hidden?(_)
  • removed: method Cop.autocorrect?()
  • removed: method Cop.support_autocorrect?()
  • changed: static method Util.range_with_surrounding_space(_, _ = …, _ = …) → static method Util.range_with_surrounding_space(_, _ = …, _ = …, _ = …)
  • added: const VariableForce.SEND_TYPE
  • added: method AutocorrectLogic.autocorrect?()
  • added: method AutocorrectLogic.autocorrect_enabled?()
  • added: method AutocorrectLogic.autocorrect_requested?()
  • added: method AutocorrectLogic.support_autocorrect?()
  • added: method Cop.correct(_)
  • added: method Cop.display_style_guide?()
  • added: method Cop.style_guide_url()
  • added: method OnNormalIfUnless.case_else_clause(_)
  • added: method OnNormalIfUnless.if_else_clause(_)
  • added: method VariableForce.process_send(_)
  • added: module AutocorrectLogic
  • added: module Performance
  • added: static method Util.directions(_)
  • added: static method Util.move_pos(_, _, _, _, _)
  • removed: const EndAlignment.MSG
  • removed: constructor BlockAlignment(_ = …, _ = …)
  • added: class NonLocalExitFromIterator < Cop
  • added: const AssignmentInCondition.ASGN_TYPES
  • added: const NonLocalExitFromIterator.MSG
  • added: method NonLocalExitFromIterator.chained_send?(_)
  • added: method NonLocalExitFromIterator.on_return(_)
  • added: method NonLocalExitFromIterator.return_value?(_)
  • added: method Void.on_kwbegin(_)
  • added: class Detect < Cop
  • added: class FlatMap < Cop
  • added: class ReverseEach < Cop
  • added: class Sample < Cop
  • added: class Size < Cop
  • added: const Detect.MSG
  • added: const Detect.REVERSE_MSG
  • added: const Detect.SELECT_METHODS
  • added: const FlatMap.FLATTEN
  • added: const FlatMap.FLATTEN_MULTIPLE_LEVELS
  • added: const FlatMap.MSG
  • added: const ReverseEach.MSG
  • added: const Sample.MSG
  • added: const Sample.RANGE_TYPES
  • added: const Size.MSG
  • added: method Detect.autocorrect(_)
  • added: method Detect.on_send(_)
  • added: method FlatMap.autocorrect(_)
  • added: method FlatMap.on_send(_)
  • added: method ReverseEach.autocorrect(_)
  • added: method ReverseEach.on_send(_)
  • added: method Sample.autocorrect(_)
  • added: method Sample.on_send(_)
  • added: method Size.autocorrect(_)
  • added: method Size.on_send(_)
  • added: class Date < Cop
  • added: class FindBy < Cop
  • added: class FindEach < Cop
  • added: class TimeZone < Cop
  • added: const Date.BAD_DAYS
  • added: const Date.MSG
  • added: const Date.MSG_SEND
  • added: const FindBy.MSG
  • added: const FindBy.TARGET_SELECTORS
  • added: const FindEach.MSG
  • added: const FindEach.SCOPE_METHODS
  • added: const TimeZone.ACCEPTED_METHODS
  • added: const TimeZone.DANGER_METHODS
  • added: const TimeZone.MSG
  • added: const TimeZone.MSG_LOCALTIME
  • added: const TimeZone.TIMECLASS
  • added: method Date.on_const(_)
  • added: method Date.on_send(_)
  • added: method FindBy.autocorrect(_)
  • added: method FindBy.on_send(_)
  • added: method FindEach.autocorrect(_)
  • added: method FindEach.on_send(_)
  • added: method TimeZone.on_const(_)
  • removed: class Blocks < Cop
  • removed: class UnneededPercentX < Cop
  • removed: const Blocks.MULTI_LINE_MSG
  • removed: const Blocks.SINGLE_LINE_MSG
  • removed: const UnneededPercentX.MSG
  • removed: method Blocks.on_block(_)
  • removed: method Blocks.on_send(_)
  • removed: method UnneededPercentX.on_xstr(_)
  • removed: static property RegexpLiteral.slash_count: accessor
  • added: class AutoResourceCleanup < Cop
  • added: class BlockDelimiters < Cop
  • added: class ClosingParenthesisIndentation < Cop
  • added: class CommandLiteral < Cop
  • added: class Copyright < Cop
  • added: class MissingElse < Cop
  • added: class SymbolLiteral < Cop
  • added: const AutoResourceCleanup.MSG
  • added: const AutoResourceCleanup.TARGET_METHODS
  • added: const ClosingParenthesisIndentation.MSG_ALIGN
  • added: const ClosingParenthesisIndentation.MSG_INDENT
  • added: const CommandLiteral.MSG_USE_BACKTICKS
  • added: const CommandLiteral.MSG_USE_PERCENT_X
  • added: const Encoding.ENCODING_PATTERN
  • added: const HashSyntax.MSG_RUBY19_NO_MIXED_KEYS
  • added: const MissingElse.MSG
  • added: const MissingElse.MSG_EMPTY
  • added: const MissingElse.MSG_NIL
  • added: const RegexpLiteral.MSG_USE_PERCENT_R
  • added: const RegexpLiteral.MSG_USE_SLASHES
  • added: const SymbolLiteral.MSG
  • added: method AutoResourceCleanup.on_send(_)
  • added: method BlockDelimiters.on_block(_)
  • added: method BlockDelimiters.on_send(_)
  • added: method ClosingParenthesisIndentation.on_begin(_)
  • added: method ClosingParenthesisIndentation.on_send(_)
  • added: method CommandLiteral.on_xstr(_)
  • added: method Copyright.autocorrect(_)
  • added: method Copyright.autocorrect_notice()
  • added: method Copyright.encoding_token?(_, _)
  • added: method Copyright.insert_notice_before(_)
  • added: method Copyright.investigate(_)
  • added: method Copyright.message()
  • added: method Copyright.notice()
  • added: method Copyright.notice_found?(_)
  • added: method Copyright.shebang_token?(_, _)
  • added: method Encoding.autocorrect(_)
  • added: method HashSyntax.alternative_style()
  • added: method HashSyntax.ruby19_no_mixed_keys_check(_)
  • added: method IfUnlessModifier.autocorrect(_)
  • added: method IndentationWidth.check_members(_, _)
  • added: method MissingElse.on_case(_)
  • added: method MissingElse.on_normal_if_unless(_)
  • added: method SymbolLiteral.autocorrect(_)
  • added: method SymbolLiteral.on_sym(_)
  • added: method TrivialAccessors.on_def(_)
  • added: method TrivialAccessors.on_defs(_)
  • added: method WhileUntilModifier.autocorrect(_)
  • added: method ERBContext.escape(_)