Rubocop v1.2.0 Release Notes
Release Date: 2020-11-05 // over 3 years ago-
๐ New features
- ๐ #8983: Support auto-correction for
Naming/HeredocDelimiterCase
. (@koic) - #8004: Add new
GitHubActionsFormatter
formatter. (@lautis) - ๐
#8175: Add new
AllowedCompactTypes
option forStyle/RaiseArgs
. (@pdobb) - ๐
#8566: Add new
Style/CollectionCompact
cop. (@fatkodima) - #8925: Add
--display-time
option for displaying elapsed time ofrubocop
command. (@joshuapinter) - ๐
#8967: Add new
Style/NegatedIfElseCondition
cop. (@fatkodima) - ๐
#8984: Support auto-correction for
Style/DoubleNegation
. (@koic) - ๐ #8992: Support auto-correction for
Lint/ElseLayout
. (@koic) - ๐ #8988: Support auto-correction for
Lint/UselessSetterCall
. (@koic) - ๐ #8982: Support auto-correction for
Naming/BinaryOperatorParameterName
. (@koic)
๐ Bug fixes
- ๐
#8989: Fix multibyte support in the regexp node handler that led
Style/RedundantRegexpEscape
to malfunction and corrupt a program in auto-correction. (@knu) - #8912: Fix
Layout/ElseAlignment
forrescue/else/ensure
insidedo/end
blocks with assignment. (@miry) - ๐ #8971: Fix a false alarm for
# rubocop:disable Lint/EmptyBlock
inline comment withLint/RedundantCopDisableDirective
. (@koic) - ๐
#8976: Fix an incorrect auto-correct for
Style/KeywordParametersOrder
when whenkwoptarg
is beforekwarg
and argument parentheses omitted. (@koic) - #8084: Fix a bug in how
Layout/SpaceAroundBlockParameters
handles block parameters with a trailing comma. (@bquorning) - ๐
#8966: Fix
Layout/SpaceInsideParens
to enforce no spaces in empty parens for all styles. (@joshuapinter)
๐ Changes
- ๐ #5717: Support
defined?
-based memoization forNaming/MemoizedInstanceVariableName
cop. (@fatkodima) - #8964: Extend
Naming/VariableNumber
cop to handle method names and symbols. (@fatkodima)
- ๐ #8983: Support auto-correction for