Rubocop v0.84.0 Release Notes
Release Date: 2020-05-21 // almost 4 years ago-
๐ New features
- ๐ #7735:
NodePattern
andAST
classes have been moved to therubocop-ast
gem. (@marcandre) - ๐ #7950: Add new
Lint/DeprecatedOpenSSLConstant
cop. (@bdewater) - #7976: Add
AllowAliasSyntax
andAllowedMethods
options forLayout/EmptyLinesAroundAttributeAccessor
. (@koic) - #7984: New
rake
task "check_commit" will runrspec
andrubocop
on files touched by the last commit. (@marcandre)
๐ Bug fixes
- ๐ #7953: Fix an error for
Lint/AmbiguousOperator
when a method with no arguments is used in advance. (@koic) - ๐ #7962: Fix a false positive for
Lint/ParenthesesAsGroupedExpression
when heredoc has a space between the same string as the method name and(
. (@koic) - ๐
#7967:
Style/SlicingWithRange
cop now supports any expression as its first index. (@zverok) - ๐
#7972: Fix an incorrect autocrrect for
Style/HashSyntax
when using a return value usesreturn
. (@koic) - ๐ #7886: Fix a bug in
AllowComments
logic inLint/SuppressedException
. (@jonas054) - #7991: Fix an error for
Layout/EmptyLinesAroundAttributeAccessor
when attribute method is method chained. (@koic) - #7993: Fix a false positive for
Migration/DepartmentName
when a disable comment contains an unexpected character for department name. (@koic)
๐ Changes
- #7952: (Breaking) Change the max line length of
Layout/LineLength
to 120 by default. (@koic) - ๐
#7959: Change enforced style to conditionals for
Style/AndOr
. (@koic) - ๐
#7985: Add
EnforcedStyle
forStyle/DoubleNegation
cop and allow double nagation in contexts that use boolean as a return value. (@koic)
- ๐ #7735: