New features
- #10170: Add new
InternalAffairs/SingleLineComparison
cop. (@dvandersluis)
Bug fixes
- #10552: Require RuboCop AST 1.20.0+ to fix a false positive for
Lint/OutOfRangeRegexpRef
when using fixed-encoding regopt. (@koic) - #10512: Fix a false positive for
Lint/ShadowingOuterLocalVariable
conditional statement and block variable. (@ydah) - #10864:
min
andmax
results in false positives forStyle/SymbolProc
similarly toselect
andreject
. (@mollerhoj) - #10846: Fix a false negative for
Style/DoubleNegation
when there is a hash or an array at return location of method. (@nobuyo) - #10875: Fix an obsolete option configuration values are duplicated when generating
.rubocop_todo.yml
. (@ydah) - #10877: Fix crash with
Layout/BlockEndNewline
heredoc detection. (@dvandersluis) - #10859: Fix
Lint/Debugger
to be able to handle method chains correctly. (@dvandersluis) - #10883: Fix
Style/RedundantParentheses
to be able to detect offenses and properly correct when the end parentheses and comma are on their own line. (@dvandersluis) - #10881: Fix
Style/SoleNestedConditional
to properly wrapblock
andcsend
nodes when necessary. (@dvandersluis) - #10867: Mark autocorrection for
Lint/EmptyConditionalBody
as unsafe. (@dvandersluis) - #10871: Restore
RuboCop::ConfigLoader.project_root
as deprecated. (@koic)
Changes
- #10857: Add
AllowedPatterns
toStyle/NumericLiterals
. (@dvandersluis) - #10648: Allow
Style/TernaryParentheses
to take priority overStyle/RedundantParentheses
when parentheses are enforced. (@dvandersluis) - #10731: Show tip for suggested extensions that are installed but not loaded in .rubocop.yml. (@nobuyo)
- #10845: Support Bundler-like namespaced feature on require config. (@r7kamura)
- #10773: Require Parser 3.1.2.1 or higher. (@dvandersluis)