Rubocop v1.6.0 Release Notes
Release Date: 2020-12-09 // over 4 years ago-
๐ New features
- #9125: Allow ConfigObsoletion to be extended by other RuboCop libraries. (@dvandersluis)
- ๐
#9182: Support auto-correction for
Style/RedundantArgument
. (@koic) - ๐
#9186: Support auto-correction for
Style/FloatDivision
. (@koic) - ๐
#9167: Support auto-correct for
StyleSingleLineBlockParams
. (@koic)
๐ Bug fixes
- ๐
#9177: Remove back-ref related code from
Style/SpecialGlobalVars
. (@r7kamura) - ๐
#9160: Fix an incorrect auto-correct for
Style/IfUnlessModifier
andStyle/SoleNestedConditional
when auto-correction conflicts for guard condition. (@koic) - ๐
#9174: Handle send nodes with unparenthesized arguments in
Style/SoleNestedConditional
. (@dvandersluis) - #9184:
Layout/EmptyLinesAroundAttributeAccessor
fails if the attr_accessor is the last line of the file. (@tas50)
๐ Changes
- ๐ง #9171: Add "did you mean" message when failing due to invalid cops in configuration. (@dvandersluis)
- ๐
#8897: Change
Style/StringConcatenation
to accept line-end concatenation between two strings so thatStyle/LineEndConcatenation
can handle it instead. (@dvandersluis) - ๐
#9172: Add
Style/PerlBackrefs
targets and change message more detailed. (@r7kamura) - โก๏ธ #9187: Update formatters to output
[Correctable]
for correctable offenses. (@dvandersluis) - ๐
#9169: Add obsoletion warnings for
Performance/*
andRails/*
which are in separate gems now. (@dvandersluis)
Previous changes from v1.5.2
-
๐ Bug fixes
- ๐
#9152: Fix an incorrect auto-correct for
Style/SoleNestedConditional
when nested||
operator modifier condition. (@koic) - #9161: Fix a false positive for
Layout/HeredocArgumentClosingParenthesis
when using subsequence closing parentheses in the same line. (@koic) - #9151: Fix
SuggestExtensions
to not suggest extensions that are installed but not direct dependencies. (@dvandersluis) - ๐
#8985: Fix
Style/StringConcatenation
autocorrect generating invalid ruby. (@tejasbubane) - #9155: Fix a false positive for
Layout/MultilineMethodCallIndentation
when multiline method chain has expected indent width and the method is preceded by splat forEnforcedStyle: indented_relative_to_receiver
. (@koic)
๐ Changes
- ๐ #9080: Make
Lint/ShadowingOuterVariable
aware ofRactor
. (@tejasbubane) - ๐ #9102: Relax regexp_parser requirement. (@marcandre)
- ๐
#9152: Fix an incorrect auto-correct for