Sourced from rubocop's releases.
RuboCop 1.46
New features
Bug fixes
- #11574: Fix a broken shorthand syntax autocorrection. (
@gsamokovarov)- #11599: Fix a false positive for
Layout/LineContinuationSpacingwhen using percent literals. (@koic)- #11556: Fix a false positive for
Lint/Debuggerwhenpis an argument of method call. (@koic)- #11591: Fix a false positive for
Lint/ToEnumArgumentswhen enumerator is not created for__callee__and__callee__methods. (@koic)- #11603: Actually run temporarily enabled cops. (
@tdeo)- #11579: Fix an error for
Layout/HeredocArgumentClosingParenthesiswhen heredoc is a method argument in a parenthesized block argument. (@koic)- #11576: Fix an error for
Lint/UselessRescuewhenrescuedoes not exception variable andensurehas empty body. (@koic)- #11608: Fix an error for
Lint/RefinementImportMethodswhen usingincludeon the top level. (@koic)- #11589: Fix an error for
Layout/HeredocArgumentClosingParenthesiswhen heredoc is a branch body in a method argument of a parenthesized argument. (@koic)- #11567: Fix
Layout/EndAlignmentfalse negative. (@j-miyake)- #11582: Fix checking if token with large offset begins its line. (
@fatkodima)- #11412: Mark
Style/ArrayIntersectas unsafe. (@koic)- #11559: Fixed false positives and negatives in
Style/RedundantRegexpCharacterClasswhen using octal escapes (e.g. "\0"). (@jaynetics)- #11575: Fix parentheses in value omissions for multiple assignments. (
@gsamokovarov)Changes
- #11586: Handle
ruby2_keywordsinStyle/DocumentationMethodcop. (@fatkodima)- #11604: Make
Naming/VariableNumberto allowx86_64CPU architecture name by default. (@koic)- #11596: Make
Style/AccessorGroupingaware of method call before accessor. (@koic)- #11588: Optimize
Style/WordArraycomplex matrix check. (@sambostock)- #11573: Handle hash patterns and pins in
Lint/OutOfRangeRegexpRefcop. (@fatkodima)- #11564: Remove print debug methods from default for
Lint/Debugger. (@koic)
Sourced from rubocop's changelog.
1.46.0 (2023-02-22)
New features
Bug fixes
- #11574: Fix a broken shorthand syntax autocorrection. ([
@gsamokovarov][])- #11599: Fix a false positive for
Layout/LineContinuationSpacingwhen using percent literals. ([@koic][])- #11556: Fix a false positive for
Lint/Debuggerwhenpis an argument of method call. ([@koic][])- #11591: Fix a false positive for
Lint/ToEnumArgumentswhen enumerator is not created for__callee__and__callee__methods. ([@koic][])- #11603: Actually run temporarily enabled cops. ([
@tdeo][])- #11579: Fix an error for
Layout/HeredocArgumentClosingParenthesiswhen heredoc is a method argument in a parenthesized block argument. ([@koic][])- #11576: Fix an error for
Lint/UselessRescuewhenrescuedoes not exception variable andensurehas empty body. ([@koic][])- #11608: Fix an error for
Lint/RefinementImportMethodswhen usingincludeon the top level. ([@koic][])- #11589: Fix an error for
Layout/HeredocArgumentClosingParenthesiswhen heredoc is a branch body in a method argument of a parenthesized argument. ([@koic][])- #11567: Fix
Layout/EndAlignmentfalse negative. ([@j-miyake][])- #11582: Fix checking if token with large offset begins its line. ([
@fatkodima][])- #11412: Mark
Style/ArrayIntersectas unsafe. ([@koic][])- #11559: Fixed false positives and negatives in
Style/RedundantRegexpCharacterClasswhen using octal escapes (e.g. "\0"). ([@jaynetics][])- #11575: Fix parentheses in value omissions for multiple assignments. ([
@gsamokovarov][])Changes
- #11586: Handle
ruby2_keywordsinStyle/DocumentationMethodcop. ([@fatkodima][])- #11604: Make
Naming/VariableNumberto allowx86_64CPU architecture name by default. ([@koic][])- #11596: Make
Style/AccessorGroupingaware of method call before accessor. ([@koic][])- #11588: Optimize
Style/WordArraycomplex matrix check. ([@sambostock][])- #11573: Handle hash patterns and pins in
Lint/OutOfRangeRegexpRefcop. ([@fatkodima][])- #11564: Remove print debug methods from default for
Lint/Debugger. ([@koic][])
be57c6d
Cut 1.464442453
Update Changelog28f8fb3
[Fix #11591]
Fix a false positive for Lint/ToEnumArguments87c7e69
Fix an error for
Layout/HeredocArgumentClosingParenthesisdf7c4cd
[Fix #11596]
Make Style/AccessorGrouping aware of method call before
accessorefce268
Actually run temporarily enabled cops52e8e4f
Fix checking if token with large offset begins its linec9630bc
Fix an error for Lint/RefinementImportMethods48b2a32
Fix parentheses in value omissions for multiple assignmentsd16167e
Add new InternalAffairs/ProcessedSourceBufferName cop