New features
- #11024: Add
require_always
option toStyle/EndlessMethod
. (@koic) - #11024: Add
require_single_line
option toStyle/EndlessMethod
. (@jtannas) - #9935: Introduce
EnforcedStyleForMultiline
"diff_comma". (@flavorjones)
Bug fixes
- #13867: Fix an error for plugins when not running RuboCop through Bundler. (@earlopain)
- #13902: Fix false negative for
Style/RedundantSelfAssignment
when the method receives a block. (@vlad-pisanov) - #13826: Fix false positives for regex cops when
Lint/MixedCaseRange
is enabled. (@earlopain) - #13818: Fix false positives for
Lint/Void
when using operator method call without argument. (@koic) - #13896: Fix a false positive for
Style/TrivialAccessors
withinstance_eval
and numblocks. (@earlopain) - #13910: Fix false positives for
Style/EndlessMethod
when using setter method definitions. (@koic) - #13889: Fix autocorrection for
Layout/LineLength
with interpolated strings when not on the first line. (@dvandersluis) - #13900: Fix infinite loop between
Layout/EmptyLinesAroundAccessModifier
andLayout/EmptyLinesAroundBlockBody
withEnforcedStyle: no_empty_lines
. (@dvandersluis) - #12692: Fix
Style/AccessorGrouping
with constants. (@tejasbubane) - #13882: Fix
Style/RedundantFormat
for annotated template strings with missing hash keys. (@dvandersluis) - #13880: Fix
Style/RedundantFormat
when given double-splatted arguments. (@dvandersluis) - #13907: Don't offer autocorrect for
Style/StringConcatenation
when numblocks are used. (@earlopain) - #13876: Don't consider
require 'pp'
to be redundant forLint/RedundantRequireStatement
. (@earlopain) - #13885: Update
Style/HashExcept
andStyle/HashSlice
to not register an offense if selecting over the hash value. (@dvandersluis)
Changes
- #12948: Add
ForbiddenNames
configuration toNaming/VariableName
to specify names that are forbidden. (@dvandersluis) - #13117: Add partial autocorrect support to
Lint/LiteralAsCondition
cop to check for redundant conditions. (@zopolis4) - #13892: Allow merging of configured arrays and non-arrays. (@sambostock)
- #13833: Add
Reference
to common params. (@sambostock) - #13890: Update
Lint/RedundantTypeConversion
to not register an offense when given a constructor withexception: false
. (@dvandersluis) - #13729: Update
Style/RedundantCondition
cop to detect conditional expressions where the true branch istrue
and suggest replacing them with a logical OR. (@datpmt)