Skip to content

Upgrading rubocop 0.77 to 0.78

Breaking0.77.0 → 0.78.0Breaking1New2Changed1Fixed8

BreakingUpgrade verdict

1 breaking change.

  • The line length check is now configured under Layout instead of Metrics, so existing configs that reference it by department need updating.
1 item needs code or config changes
Breaking1
Moves LineLength cop from Metrics department to Layout department.
Metrics/LineLengthLayout/LineLength

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

  • added: method Offense.correctable?()
  • added: module LineLengthHelp
  • added: module RationalLiteral
  • added: class LineLength < Cop
  • added: const LineLength.MSG
  • added: method LineLength.autocorrect(_)
  • added: method LineLength.investigate(_)
  • added: method LineLength.investigate_post_walk(_)
  • added: method LineLength.on_array(_)
  • added: method LineLength.on_hash(_)
  • added: method LineLength.on_potential_breakable_node(_)
  • added: method LineLength.on_send(_)
  • added: class NonDeterministicRequireOrder < Cop
  • added: const NonDeterministicRequireOrder.MSG
  • added: method NonDeterministicRequireOrder.autocorrect(_)
  • added: method NonDeterministicRequireOrder.on_block(_)
  • removed: class LineLength < Cop
  • removed: const LineLength.MSG
  • removed: method LineLength.autocorrect(_)
  • removed: method LineLength.investigate(_)
  • removed: method LineLength.investigate_post_walk(_)
  • removed: method LineLength.on_array(_)
  • removed: method LineLength.on_hash(_)
  • removed: method LineLength.on_potential_breakable_node(_)
  • removed: method LineLength.on_send(_)