Bump rubocop from 0.67.2 to 0.70.0
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 toStyle/MethodCallWithArgsParentheses
. (@tejasbubane)- #7059: Add
EnforcedStyle
toLayout/EmptyLinesAroundAccessModifier
. (@koic)- #7052: Add
AllowComments
option toLint/HandleExceptions
. (@tejasbubane)Bug fixes
- #7013: Respect DisabledByDefault for custom cops. (@XrXr)
- #7043: Prevent RDoc error when installing RuboCop 0.69.0 on Ubuntu. (@koic)
- #7023: Autocorrection for
Lint/NumberConversion
. (@Bhacaz)Changes
- #6359: Mark
Style/PreferredHashMethods
as unsafe. (@tejasbubane)RuboCop 0.69
New features
- Add support for subclassing using
Class.new
toLint/InheritException
. ([@houli][])- #6779: Add new cop
Style/NegativeUnless
that checks for unless with negative condition. (@tejasbubane)Bug fixes
- #6900: Fix
Rails/TimeZone
autocorrectTime.current
toTime.zone.now
. ([@vfonic][])- #6900: Fix
Rails/TimeZone
to preferTime.zone.#{method}
over other acceptable corrections. ([@vfonic][])- #7007: Fix
Style/BlockDelimiters
withbraces_for_chaining
style false positive, when chaining using safe navigation. ([@Darhazer][])- #6880: Fix
.rubocop
file parsing. ([@hoshinotsuyoshi][])- #5782: Do not autocorrect
Lint/UnifiedInteger
ifTargetRubyVersion < 2.4
. ([@lavoiesl][])- #6387: Prevent
Lint/NumberConversion
from reporting error withTime
/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
inRails/ReversibleMigration
cop. (@tejasbubane)- #7033: Fix an error for
Layout/EmptyLineAfterGuardClause
when guard clause is a ternary operator. (@koic)Changes
... (truncated)
- #6945: Drop support for Ruby 2.2. (@koic)
- #6945: Set default
EnforcedStyle
tosquiggly
option forLayout/IndentHeredoc
andauto_detection
option is removed. (@koic)- #6945: Set default
EnforcedStyle
toalways
option forStyle/FrozenStringLiteralComment
andwhen_needed
option is removed. (@koic)- #7027: Allow unicode/display_width dependency version 1.6.0. ([@tagliala][])
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 toStyle/MethodCallWithArgsParentheses
. (@tejasbubane)- #7059: Add
EnforcedStyle
toLayout/EmptyLinesAroundAccessModifier
. (@koic)- #7052: Add
AllowComments
option toLint/HandleExceptions
. (@tejasbubane)Bug fixes
- #7013: Respect DisabledByDefault for custom cops. (@XrXr)
- #7043: Prevent RDoc error when installing RuboCop 0.69.0 on Ubuntu. (@koic)
- #7023: Autocorrection for
Lint/NumberConversion
. (@Bhacaz)Changes
- #6359: Mark
Style/PreferredHashMethods
as unsafe. (@tejasbubane)0.69.0 (2019-05-13)
New features
- Add support for subclassing using
Class.new
toLint/InheritException
. ([@houli][])- #6779: Add new cop
Style/NegatedUnless
that checks for unless with negative condition. (@tejasbubane)Bug fixes
- #6900: Fix
Rails/TimeZone
autocorrectTime.current
toTime.zone.now
. ([@vfonic][])- #6900: Fix
Rails/TimeZone
to preferTime.zone.#{method}
over other acceptable corrections. ([@vfonic][])- #7007: Fix
Style/BlockDelimiters
withbraces_for_chaining
style false positive, when chaining using safe navigation. ([@Darhazer][])- #6880: Fix
.rubocop
file parsing. ([@hoshinotsuyoshi][])- #5782: Do not autocorrect
Lint/UnifiedInteger
ifTargetRubyVersion < 2.4
. ([@lavoiesl][])- #6387: Prevent
Lint/NumberConversion
from reporting error withTime
/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
inRails/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
tosquiggly
option forLayout/IndentHeredoc
andauto_detection
option is removed. (@koic)- #6945: Set default
EnforcedStyle
toalways
option forStyle/FrozenStringLiteralComment
andwhen_needed
option is removed. (@koic)- #7027: Allow
unicode/display_width
dependency version 1.6.0. ([@tagliala][])0.68.1 (2019-04-30)
... (truncated) Bug fixes
Commits
-
959f215
Cut 0.70 -
7a21748
Merge pull request #7065 from koic/fix_a_ci_error -
6a4f586
Fix a CI error -
8a7ee84
AddEnforcedStyle
toLayout/EmptyLinesAroundAccessModifier
(#7059) -
2aca931
AddAllowComments
option toLint/HandleExceptions
-
c89485f
[Fix #6359] MarkStyle/PreferredHashMethods
as unsafe (#7051) -
7cf638c
[Fix #7023] Add auto-correction forLint/NumberConversion
(#7054) -
ed3b9c8
[Fix #7042] Remove post install message for RuboCop Performance -
98ad15f
Respect DisabledByDefault for custom cops (#7013) -
72402c0
Addunset_nil
option toConfigLoader.merge_with_default
- Additional commits viewable in compare view