Rubocop v0.55.0 Release Notes
Release Date: 2018-04-16 // about 6 years ago-
๐ New features
- ๐ #5753: Add new
Performance/UnneededSort
cop. ([@parkerfinch][]) - โ Add new
Lint/SafeNavigationConsistency
cop. ([@rrosenblum][])
๐ Bug fixes
- ๐ #5759: Fix
Performance/RegexpMatch
cop not correcting negated match operator. ([@bdewater][]) - ๐
#5726: Fix false positive for
:class_name
option in Rails/InverseOf cop. ([@bdewater][]) - ๐
#5686: Fix a regression for
Style/SymbolArray
andStyle/WordArray
for multiline Arrays. ([@istateside][]) - ๐
#5730: Stop
Rails/InverseOf
cop allowinginverse_of: nil
to opt-out. ([@bdewater][]) - ๐ #5561: Fix
Lint/ShadowedArgument
false positive with shorthand assignments. ([@akhramov][]) - #5403: Fix
Naming/HeredocDelimiterNaming
blacklist patterns. ([@mcfisch][]) - ๐ #4298: Fix auto-correction of
Performance/RegexpMatch
to produce code that safe guards against the receiver beingnil
. ([@rrosenblum][]) - ๐
#5738: Make
Rails/HttpStatus
ignoring hash order to fix false negative. ([@pocke][]) - ๐
#5720: Fix false positive for
Style/EmptyLineAfterGuardClause
when guard clause is after heredoc. ([@koic][]) - ๐
#5760: Fix incorrect offense location for
Style/EmptyLineAfterGuardClause
when guard clause is after heredoc argument. ([@koic][]) - ๐
#5764: Fix
Style/Unpackfirst
false positive ofunpack('h*').take(1)
. ([@parkerfinch][]) - ๐
#5766: Update
Style/FrozenStringLiteralComment
auto-correction to insert a new line between the comment and the code. ([@rrosenblum][]) - ๐ #5551: Fix
Lint/Void
not detecting void context in blocks with single expression. ([@Darhazer][])
๐ Changes
- ๐ #5752: Add
String#delete_{prefix,suffix}
to Lint/Void cop. ([@bdewater][]) - 0๏ธโฃ #5734: Add
by
,on
,in
andat
to allowed names ofNaming/UncommunicativeMethodParamName
cop in default config. ([@AlexWayfer][]) - ๐
#5666: Add spaces as an
EnforcedStyle
option toLayout/SpaceInsideParens
, allowing you to enforce spaces inside of parentheses. ([@joshuapinter][]) - ๐ง #4257: Allow specifying module name in
Metrics/BlockLength
'sExcludedMethods
configuration option. ([@akhramov][]) - ๐
#4753: Add
IgnoredMethods
option toStyle/MethodCallWithoutArgsParentheses
cop. ([@Darhazer][]) - #4517: Add option to allow trailing whitespaces inside heredoc strings. ([@Darhazer][])
- ๐
#5652: Make
Style/OptionHash
aware of implicit parameter passing to super. ([@Wei-LiangChew][]) - #5451: When using --auto-gen-config, do not output offenses unless the --output-offenses flag is also passed. ([@drewpterry][])
- ๐ #5753: Add new