Skip to content

Bump rubocop from 0.67.2 to 0.70.0

NipaNipa requested to merge dependabot/bundler/rubocop-0.70.0 into master

Bumps rubocop from 0.67.2 to 0.70.0.

Release notes

Sourced from rubocop's releases.

RuboCop 0.70

New features

  • #6649: Layout/AlignHash supports list of options. (@​stoivo)
  • Add IgnoreMethodPatterns config option to Style/MethodCallWithArgsParentheses. (@​tejasbubane)
  • #7059: Add EnforcedStyle to Layout/EmptyLinesAroundAccessModifier. (@​koic)
  • #7052: Add AllowComments option to Lint/HandleExceptions. (@​tejasbubane)

Bug fixes

Changes

RuboCop 0.69

New features

  • Add support for subclassing using Class.new to Lint/InheritException. ([@​houli][])
  • #6779: Add new cop Style/NegativeUnless that checks for unless with negative condition. (@​tejasbubane)

Bug fixes

  • #6900: Fix Rails/TimeZone autocorrect Time.current to Time.zone.now. ([@​vfonic][])
  • #6900: Fix Rails/TimeZone to prefer Time.zone.#{method} over other acceptable corrections. ([@​vfonic][])
  • #7007: Fix Style/BlockDelimiters with braces_for_chaining style false positive, when chaining using safe navigation. ([@​Darhazer][])
  • #6880: Fix .rubocop file parsing. ([@​hoshinotsuyoshi][])
  • #5782: Do not autocorrect Lint/UnifiedInteger if TargetRubyVersion < 2.4. ([@​lavoiesl][])
  • #6387: Prevent Lint/NumberConversion from reporting error with Time/DateTime. (@​tejasbubane)
  • #6980: Fix Style/StringHashKeys to allow string as keys for hash arguments to gsub methods. (@​tejasbubane)
  • #6969: Fix a false positive with block methods in Style/InverseMethods. ([@​dduugg][])
  • #6729: Handle array spread for change_column_default in Rails/ReversibleMigration cop. (@​tejasbubane)
  • #7033: Fix an error for Layout/EmptyLineAfterGuardClause when guard clause is a ternary operator. (@​koic)

Changes

  • #6945: Drop support for Ruby 2.2. (@​koic)
  • #6945: Set default EnforcedStyle to squiggly option for Layout/IndentHeredoc and auto_detection option is removed. (@​koic)
  • #6945: Set default EnforcedStyle to always option for Style/FrozenStringLiteralComment and when_needed option is removed. (@​koic)
  • #7027: Allow unicode/display_width dependency version 1.6.0. ([@​tagliala][])
... (truncated)
Changelog

Sourced from rubocop's changelog.

0.70.0 (2019-05-21)

New features

  • #6649: Layout/AlignHash supports list of options. (@​stoivo)
  • Add IgnoreMethodPatterns config option to Style/MethodCallWithArgsParentheses. (@​tejasbubane)
  • #7059: Add EnforcedStyle to Layout/EmptyLinesAroundAccessModifier. (@​koic)
  • #7052: Add AllowComments option to Lint/HandleExceptions. (@​tejasbubane)

Bug fixes

Changes

0.69.0 (2019-05-13)

New features

  • Add support for subclassing using Class.new to Lint/InheritException. ([@​houli][])
  • #6779: Add new cop Style/NegatedUnless that checks for unless with negative condition. (@​tejasbubane)

Bug fixes

  • #6900: Fix Rails/TimeZone autocorrect Time.current to Time.zone.now. ([@​vfonic][])
  • #6900: Fix Rails/TimeZone to prefer Time.zone.#{method} over other acceptable corrections. ([@​vfonic][])
  • #7007: Fix Style/BlockDelimiters with braces_for_chaining style false positive, when chaining using safe navigation. ([@​Darhazer][])
  • #6880: Fix .rubocop file parsing. ([@​hoshinotsuyoshi][])
  • #5782: Do not autocorrect Lint/UnifiedInteger if TargetRubyVersion < 2.4. ([@​lavoiesl][])
  • #6387: Prevent Lint/NumberConversion from reporting error with Time/DateTime. (@​tejasbubane)
  • #6980: Fix Style/StringHashKeys to allow string as keys for hash arguments to gsub methods. (@​tejasbubane)
  • #6969: Fix a false positive with block methods in Style/InverseMethods. ([@​dduugg][])
  • #6729: Handle array spread for change_column_default in Rails/ReversibleMigration cop. (@​tejasbubane)
  • #7033: Fix an error for Layout/EmptyLineAfterGuardClause when guard clause is a ternary operator. (@​koic)

Changes

  • #6945: Drop support for Ruby 2.2. (@​koic)
  • #6945: Set default EnforcedStyle to squiggly option for Layout/IndentHeredoc and auto_detection option is removed. (@​koic)
  • #6945: Set default EnforcedStyle to always option for Style/FrozenStringLiteralComment and when_needed option is removed. (@​koic)
  • #7027: Allow unicode/display_width dependency version 1.6.0. ([@​tagliala][])

0.68.1 (2019-04-30)

Bug fixes

... (truncated)
Commits
  • 959f215 Cut 0.70
  • 7a21748 Merge pull request #7065 from koic/fix_a_ci_error
  • 6a4f586 Fix a CI error
  • 8a7ee84 Add EnforcedStyle to Layout/EmptyLinesAroundAccessModifier (#7059)
  • 2aca931 Add AllowComments option to Lint/HandleExceptions
  • c89485f [Fix #6359] Mark Style/PreferredHashMethods as unsafe (#7051)
  • 7cf638c [Fix #7023] Add auto-correction for Lint/NumberConversion (#7054)
  • ed3b9c8 [Fix #7042] Remove post install message for RuboCop Performance
  • 98ad15f Respect DisabledByDefault for custom cops (#7013)
  • 72402c0 Add unset_nil option to ConfigLoader.merge_with_default
  • Additional commits viewable in compare view

Merge request reports