Sourced from rubocop's releases.
RuboCop 1.45.1
Bug fixes
- #11552: Fix a false positive for
Lint/Debuggerwhen methods containing different method chains. (@ydah)- #11548: Fix an error for
Style/AccessModifierDeclarationswhen if a non method definition was included. (@ydah)- #11554: Fix an error for
Style/RedundantConditionwhen the branches contains empty hash literal argument. (@koic)- #11549: Fix an error for third party cops when inheriting
RuboCop::Cop::Cop. (@koic)RuboCop 1.45
New features
- #10839: Add API for 3rd party template support. (
@r7kamura)- #11528: Add new
Style/RedundantHeredocDelimiterQuotescop. (@koic)- #11188: Add a
--no-detachoption for--start-server. This will start the server process in the foreground, which can be helpful when running within Docker where detaching the process terminates the container. (@f1sherman)- #11546: Make
Lint/UselessAccessModifieraware of Ruby 3.2'sData.define. (@koic)- #11396: Add ability to profile rubocop execution via
--profileand--memoryoptions. ([@fatkodima][])Bug fixes
- #11491: Fix a crash on
Lint/UselessAssignment. ([@gsamokovarov][])- #11515: Fix a false negative for
Naming/HeredocDelimiterNamingwhen using lowercase. (@koic)- #11511: Fix a false negative for
Style/YodaConditionwhen using constant. (@koic)- #11520: Fix a false negative for
Style/YodaExpressionwhen using constant. (@koic)- #11521: Fix a false positive for
Lint/FormatParameterMismatchwhen usingKernel.formatwith the interpolated number of decimal places fields match. (@koic)- #11545: Fix the following false positive for
Lint/NestedMethodDefinitionwhen using numbered parameter. (@koic)- #11535: Fix a false positive for
Style/NumberedParametersLimitwhen only_2or higher numbered parameter is used. (@koic)- #11508: Fix a false positive for
Style/OperatorMethodCallwhen using multiple arguments for operator method. (@koic)- #11503: Fix a false positive for
Style/RedundantConditionwhen using method argument with operator. (@koic)- #11529: Fix an incorrect autocorrect for
Layout/ClassStructurewhen definitions that need to be sorted are defined alternately. (@ydah)- #11530: Fix an incorrect autocorrect for
Style/AccessModifierDeclarationswhen multiple groupable access modifiers are defined. (@ydah)- #10910: Fix an incorrect autocorrect for
Style/MultilineTernaryOperatorwhen contains a comment. (@ydah)- #11522: Don't flag default keyword arguments in
Style/ArgumentsForwarding. ([@splattael][])- #11547: Fix a false positive for
Lint/NestedMethodDefinitionwhen using Ruby 3.2'sData.define. (@koic)- #11537: Fix an infinite loop error for
Layout/ArrayAlignmentwhen using assigning unbracketed array elements. (@koic)- #11516: Fix missing parentheses in shorthand hash syntax as argument calls. ([
@gsamokovarov][])Changes
- #11504: Allow
initializemethod inStyle/DocumentationMethod. (@koic)- #11541: Enable autocorrection for
Layout/LineContinuationLeadingSpace. ([@eugeneius][])- #11542: Mark
Layout/AssignmentIndentationas safe andLint/AssignmentInConditionas unsafe for autocorrection. ([@eugeneius][])- #11517: Make
Lint/Debuggeraware ofp,PP.pp, andppmethods. (@koic)- #11539: Remove
bundlerfrom defaultAllowedGemsofGemspec/DevelopmentDependencies. (@koic)
... (truncated)
Sourced from rubocop's changelog.
1.45.1 (2023-02-08)
Bug fixes
- #11552: Fix a false positive for
Lint/Debuggerwhen methods containing different method chains. ([@ydah][])- #11548: Fix an error for
Style/AccessModifierDeclarationswhen if a non method definition was included. ([@ydah][])- #11554: Fix an error for
Style/RedundantConditionwhen the branches contains empty hash literal argument. ([@koic][])- #11549: Fix an error for third party cops when inheriting
RuboCop::Cop::Cop. ([@koic][])1.45.0 (2023-02-08)
New features
- #10839: Add API for 3rd party template support. ([
@r7kamura][])- #11528: Add new
Style/RedundantHeredocDelimiterQuotescop. ([@koic][])- #11188: Add a
--no-detachoption for--start-server. This will start the server process in the foreground, which can be helpful when running within Docker where detaching the process terminates the container. ([@f1sherman][])- #11546: Make
Lint/UselessAccessModifieraware of Ruby 3.2'sData.define. ([@koic][])- #11396: Add ability to profile rubocop execution via
--profileand--memoryoptions. ([@fatkodima][])Bug fixes
- #11491: Fix a crash on
Lint/UselessAssignment. ([@gsamokovarov][])- #11515: Fix a false negative for
Naming/HeredocDelimiterNamingwhen using lowercase. ([@koic][])- #11511: Fix a false negative for
Style/YodaConditionwhen using constant. ([@koic][])- #11520: Fix a false negative for
Style/YodaExpressionwhen using constant. ([@koic][])- #11521: Fix a false positive for
Lint/FormatParameterMismatchwhen usingKernel.formatwith the interpolated number of decimal places fields match. ([@koic][])- #11545: Fix the following false positive for
Lint/NestedMethodDefinitionwhen using numbered parameter. ([@koic][])- #11535: Fix a false positive for
Style/NumberedParametersLimitwhen only_2or higher numbered parameter is used. ([@koic][])- #11508: Fix a false positive for
Style/OperatorMethodCallwhen using multiple arguments for operator method. ([@koic][])- #11503: Fix a false positive for
Style/RedundantConditionwhen using method argument with operator. ([@koic][])- #11529: Fix an incorrect autocorrect for
Layout/ClassStructurewhen definitions that need to be sorted are defined alternately. ([@ydah][])- #11530: Fix an incorrect autocorrect for
Style/AccessModifierDeclarationswhen multiple groupable access modifiers are defined. ([@ydah][])- #10910: Fix an incorrect autocorrect for
Style/MultilineTernaryOperatorwhen contains a comment. ([@ydah][])- #11522: Don't flag default keyword arguments in
Style/ArgumentsForwarding. ([@splattael][])- #11547: Fix a false positive for
Lint/NestedMethodDefinitionwhen using Ruby 3.2'sData.define. ([@koic][])- #11537: Fix an infinite loop error for
Layout/ArrayAlignmentwhen using assigning unbracketed array elements. ([@koic][])- #11516: Fix missing parentheses in shorthand hash syntax as argument calls. ([
@gsamokovarov][])Changes
- #11504: Allow
initializemethod inStyle/DocumentationMethod. ([@koic][])- #11541: Enable autocorrection for
Layout/LineContinuationLeadingSpace. ([@eugeneius][])- #11542: Mark
Layout/AssignmentIndentationas safe andLint/AssignmentInConditionas unsafe for autocorrection. ([@eugeneius][])- #11517: Make
Lint/Debuggeraware ofp,PP.pp, andppmethods. ([@koic][])- #11539: Remove
bundlerfrom defaultAllowedGemsofGemspec/DevelopmentDependencies. ([@koic][])
b0f8575
Cut 1.45.1c3f9516
Update Changelogc4ee09c
Fix an error for Style/AccessModifierDeclarations when if a
non method defi...2404946
CI against JRuby 9.4 instead of JRuby 9.32989584
Fix a false positive for Lint/Debugger when methods
containing different me...cdfc397
Restore a pending test for processing a regex with regoptdca9221
[Fix #11554]
Fix an error for Style/RedundantCondition4ec3822
[Fix #11549]
Fix an error for third party copsb1b393a
Switch back the docs version170d244
Cut 1.45