New features
- #7951: Include
rakefile
file by default. (@jethrodaniel) - #7921: Add new
Style/SlicingWithRange
cop. (@zverok) - #7895: Include
.simplecov
file by default. (@robotdana) - #7916: Support autocorrection for
Lint/AmbiguousRegexpLiteral
. (@koic) - #7917: Support autocorrection for
Lint/UselessAccessModifier
. (@koic) - #595: Add ERB pre-processing for configuration files. (@jonas054)
- #7918: Support autocorrection for
Lint/AmbiguousOperator
. (@koic) - #7937: Support autocorrection for
Style/IfWithSemicolon
. (@koic) - #3696: Add
AllowComments
option toLint/EmptyWhen
cop. (@koic) - #7910: Support autocorrection for
Lint/ParenthesesAsGroupedExpression
. (@koic) - #7925: Support autocorrection for
Layout/ConditionPosition
. (@koic) - #7934: Support autocorrection for
Lint/EnsureReturn
. (@koic) - #7922: Add new
Layout/EmptyLineAroundAttributeAccessor
cop. (@koic)
Bug fixes
- #7929: Fix
Style/FrozenStringLiteralComment
to accept frozen_string_literal anywhere in leading comment lines. (@jeffcarbs) - #7882: Fix
Style/CaseEquality
whenAllowOnConstant
istrue
and the method receiver is implicit. (@rafaelfranca) - #7790: Fix
--parallel
and--ignore-parent-exclusion
combination. (@jonas054) - #7881: Fix
--parallel
and--force-default-config
combination. (@jonas054) - #7635: Fix a false positive for
Style/MultilineWhenThen
whenthen
required for a body ofwhen
is used. (@koic) - #7905: Fix an error when running
rubocop --only
orrubocop --except
options without cop name argument. (@koic) - #7903: Fix an incorrect autocorrect for
Style/HashTransformKeys
andStyle/HashTransformValues
cops when line break beforeto_h
method. (@diogoosorio, @koic) - #7899: Fix an infinite loop error for
Layout/SpaceAroundOperators
withLayout/ExtraSpacing
when usingForceEqualSignAlignment: true
. (@koic) - #7885: Fix
Style/IfUnlessModifier
logic when tabs are used for indentation. (@jonas054) - #7909: Fix a false positive for
Lint/ParenthesesAsGroupedExpression
when using an intended grouped parentheses. (@koic) - #7913: Fix a false positive for
Lint/LiteralAsCondition
when usingtrue
literal inwhile
and similar cases. (@koic) - #7928: Fix a false message for
Style/GuardClause
when usingand
oror
operators for guard clause inthen
orelse
branches. (@koic) - #7928: Fix a false positive for
Style/GuardClause
when assigning the result of a guard condition withelse
. (@koic)
Changes
- #7860: Change
AllowInHeredoc
option ofLayout/TrailingWhitespace
totrue
by default. (@koic) - #7094: Clarify alignment in
Layout/MultilineOperationIndentation
. (@jonas054) - #4245: (Breaking) Inspect all files given on command line unless
--only-recognized-file-types
is given. (@jonas054) - #7390: (Breaking) Enabling a cop overrides disabling its department. (@jonas054)
- #7936: Mark
Lint/BooleanSymbol
as unsafe. (@laurmurclar) - #7948: Mark unsafe for
Style/OptionalArguments
. (@koic) - #7931: Remove dependency on the
jaro_winkler
gem, instead depending ondid_you_mean
. This may be a breaking change for RuboCop libraries callingNameSimilarity#find_similar_name
. (@bquorning)