New features
- #12360: Add new
Naming/PredicateMethod
cop to check that predicate methods end with?
and non-predicate methods do not. (@dvandersluis) - #13121: Add new
Style/EmptyStringInsideInterpolation
cop. (@zopolis4) - #14091: Add new cop
Style/RedundantArrayFlatten
. (@lovro-bikic) - #14184: Add new cop
Lint/UselessOr
. (@lovro-bikic) - #14221: Enhance
Gemspec
department cops to detect offenses if specification variable isit
or a numbered parameter. (@viralpraxis) - #14166: Add new cop
Lint/UselessDefaultValueArgument
. (@lovro-bikic)
Bug fixes
- #14228: Fix a false positive for
Style/RedundantParentheses
when using a one-linerescue
expression as a method argument. (@koic) - #14224: Fix false negatives for
Style/RedundantParentheses
when using one-line pattern matching. (@koic) - #14205: False negatives in
Style/SafeNavigation
when a ternary expression is used in a method argument. (@steiley) - #14226: Fix
Lint/LiteralAsCondition
autocorrect when branches of a condition have comments. (@zopolis4)
Changes
- #14066: Add
EnforcedStyle: allow_single_line
as the default toStyle/ItBlockParameter
. (@koic) - #13788: Disable
Lint/ShadowingOuterLocalVariable
by default. (@nekketsuuu) - #14215: Recognize inequation (
!=
) inLint/IdentityComparison
. (@lovro-bikic)