Sourced from rubocop's releases.
RuboCop 1.48.1
Bug fixes
- #11673: Fix incorrect
Style/HashSyntaxautocorrection for assignment methods. (@gsamokovarov)- #11682: Fix a false positive for
Lint/UselessRescuewhen usingThread#raiseinrescueclause. (@koic)- #11672: Fix an error for
Layout/BlockEndNewlinewhen multiline block}is not on its own line and it is used as multiple arguments. (@koic)- #11675:
Style/AccessorGrouping: Fix sibling detection for methods with type sigs. (@issyl0)- #11658: Fix
Lint/Debuggershould not allow pry. (@ThHareau)- #11689: Fix
Lint/Syntaxbehavior whenEnabled: falseofLintdepartment. (@koic)- #11677: Fix the severity for
Lint/Syntax. (@koic)- #11691: Fix an error for
Gemspec/DependencyVersionwhen method called on gem name argument foradd_dependency. (@koic)RuboCop 1.48
New features
Bug fixes
- #11654: Fix a false positive for
Lint/MissingSuperwhen nosupercall and when defining some method. (@koic)- #11661: Fix an error for
Style/Documentationwhen namespace is a variable. (@koic)- #11647: Fix an error for
Style/IfWithBooleanLiteralBrancheswhen using()as a condition. (@koic)- #11646: Fix an error for
Style/NegatedIfElseConditionwhen using()as a condition. (@koic)- #11659: Fix an incorrect autocorrect for
Lint/OrAssignmentToConstantwhen using or-assignment to a constant in method definition. (@koic)- #11663: Fix an incorrect autocorrect for
Style/BlockDelimiterswhen multi-line blocks to{and}with arithmetic operation method chain. (@koic)- #11638: Fix a false positive for
Lint/UselessAccessModifierwhen using same access modifier inside and outside theincludedblock. (@ydah)- #11164: Suppress server mode message with
-f json. (@jasondoc3)- #11643: Fix incorrect shorthand autocorrections in calls inside parentheses. (
@gsamokovarov)- #11650:
Style/AccessorGrouping: Fix detection of Sorbetsig {}blocks. (@issyl0)- #11657: Use cop name to check if cop inside registry is enabled. Previously, it was able to cause large memory usage during linting. (
@fatkodima)Changes
- #11482: Avoid comment deletion by
Style/IfUnlessModifierwhen the modifier form expression has long comment. (@nobuyo)- #11649: Support
MinBranchesCountconfig forStyle/CaseLikeIfcop. (@fatkodima)
... (truncated)
Sourced from rubocop's changelog.
1.48.1 (2023-03-13)
Bug fixes
- #11673: Fix incorrect
Style/HashSyntaxautocorrection for assignment methods. ([@gsamokovarov][])- #11682: Fix a false positive for
Lint/UselessRescuewhen usingThread#raiseinrescueclause. ([@koic][])- #11672: Fix an error for
Layout/BlockEndNewlinewhen multiline block}is not on its own line and it is used as multiple arguments. ([@koic][])- #11675:
Style/AccessorGrouping: Fix sibling detection for methods with type sigs. ([@issyl0][])- #11658: Fix
Lint/Debuggershould not allow pry. ([@ThHareau][])- #11689: Fix
Lint/Syntaxbehavior whenEnabled: falseofLintdepartment. ([@koic][])- #11677: Fix the severity for
Lint/Syntax. ([@koic][])- #11691: Fix an error for
Gemspec/DependencyVersionwhen method called on gem name argument foradd_dependency. ([@koic][])1.48.0 (2023-03-06)
New features
Bug fixes
- #11654: Fix a false positive for
Lint/MissingSuperwhen nosupercall and when defining some method. ([@koic][])- #11661: Fix an error for
Style/Documentationwhen namespace is a variable. ([@koic][])- #11647: Fix an error for
Style/IfWithBooleanLiteralBrancheswhen using()as a condition. ([@koic][])- #11646: Fix an error for
Style/NegatedIfElseConditionwhen using()as a condition. ([@koic][])- #11659: Fix an incorrect autocorrect for
Lint/OrAssignmentToConstantwhen using or-assignment to a constant in method definition. ([@koic][])- #11663: Fix an incorrect autocorrect for
Style/BlockDelimiterswhen multi-line blocks to{and}with arithmetic operation method chain. ([@koic][])- #11638: Fix a false positive for
Lint/UselessAccessModifierwhen using same access modifier inside and outside theincludedblock. ([@ydah][])- #11164: Suppress server mode message with
-f json. ([@jasondoc3][])- #11643: Fix incorrect shorthand autocorrections in calls inside parentheses. ([
@gsamokovarov][])- #11650:
Style/AccessorGrouping: Fix detection of Sorbetsig {}blocks. ([@issyl0][])- #11657: Use cop name to check if cop inside registry is enabled. Previously, it was able to cause large memory usage during linting. ([
@fatkodima][])Changes
- #11482: Avoid comment deletion by
Style/IfUnlessModifierwhen the modifier form expression has long comment. ([@nobuyo][])- #11649: Support
MinBranchesCountconfig forStyle/CaseLikeIfcop. ([@fatkodima][])1.47.0 (2023-03-01)
New features
- #11475: Add autocorrect for hash in
Lint/LiteralInInterpolation. ([@KessaPassa][])- #11584: Add
Metrics/CollectionLiteralLengthcop. ([@sambostock][])Bug fixes
... (truncated)
675114c
Cut 1.48.1a0d896a
Update Changeloged786ab
[Fix #11658]
Register Object#pry as an offense (#11669)96911a9
[Doc] Tweak the doc for DisabledByDefault confige79974b
Merge pull request #11691
from koic/fix_an_error_for_gemspec_dependency_versiona3b8a8d
Fix an error for Gemspec/DependencyVersionf035637
Fix Lint/Syntax behavior when Enabled: false
of Lint departmentd11e25f
Add Ruby 3.3 context to rspec/support.rb0fc26d8
[Fix #11677]
Fix the severity for Lint/Syntax6c3bbff
[Fix #11682]
Fix a false positive for Lint/UselessRescue