#11204: Fix a false negative for Lint/RedundantCopDisableDirective when using --except command line option. (@koic)
#11369: Fix an error for Lint/UselessRuby2Keywords when using Proc#ruby2_keywords. (@koic)
#11351: Fix an incorrect autocorrect for Lint/RegexpAsCondition when using regexp literal with bang. (@koic)
#11329: Accept simple freezed constants in Layout/ClassStructure and correctly handle class methods. (@fatkodima)
#11344: Fix an error for Style/GuardClause when using heredoc as an argument of raise in then branch and it does not have else branch. (@koic)
#11335: Fix an error for Style/RequireOrder when only one reuqire. (@koic)
#11348: Fix an error for Style/SelectByRegexp when block body is empty. (@koic)
#11320: Fix a false positive for Lint/RequireParentheses when assigning ternary operator. (@koic)
#11361: Make Style/MethodDefParentheses aware of Ruby 3.2's anonymous rest and keyword rest arguments. (@koic)
#11346: Fix a false positive for Style/RedundantStringEscape when using escaped space in heredoc. (@koic)
#10858: Fix Style/IdenticalConditionalBranches to ignore identical leading lines when branch has single child and is used in return context. (@fatkodima)
#11237: Fix Layout/CommentIndentation comment aligned with access modifier indentation when EnforcedStyle is outdent. (@soroktree)
#11330: Fix an error for Style/RequireOrder when using require inside rescue body. (@fatkodima)
#8751: Accept super within ranges for Layout/SpaceAroundKeyword cop. (@fatkodima)
#10194: Accept bracketed arrays within 2d arrays containing subarrays with complex content for Style/WordArray cop. (@fatkodima)
Changes
#8366: Ignore private constants in Layout/ClassStructure cop. (@fatkodima)
#11325: Support autocorrection for percent literals in Style/ConcatArrayLiterals. (@fatkodima)
#11327: Make Style/ZeroLengthPredicate aware of array.length.zero?. (@koic)
#10976: Support pattern matching for Lint/OutOfRangeRegexpRef cop. (@fatkodima)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (1.41.1 → 1.42.0) · Repo · Changelog
Release Notes
1.42.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 51 commits:
Cut 1.42
Update Changelog
Merge pull request #11372 from koic/ci_against_ruby_3_2_on_windows
CI against Ruby 3.2 on Windows
Fix an error for `Lint/UselessRuby2Keywords`
Fix `Style/WordArray` for subarrays
Bump license years to 2023
Improve offense message for `Style/YodaExpression` cop
[Doc] Update the doc for `Style/MinMaxComparison`
Add examples for 2d arrays to `Style/WordArray` cop
Update `rubocop-ast` to include performance improvements
Accept bracketed arrays within 2d arrays containing subarrays with complex content for `Style/WordArray` cop
Add new `Style/YodaExpression` cop
Support pattern matching for `Lint/OutOfRangeRegexpRef` cop
[Fix #11322] Fix message for Lint/UnusedMethodArgument
Add new `Style/MinMaxComparison` cop
Fix an incorrect autocorrect for `Lint/RegexpAsCondition`
Better ignoring of files in example code
[Fix #11361] Make `Style/MethodDefParentheses` aware of anonymous rest and keyword rest args
CircleCI against Ruby 3.2
[Fix 11357] Tweak the doc for `Security/CompoundHash`
Merge pull request #11348 from koic/fix_error_for_style_select_by_regexp
Merge pull request #11347 from koic/fix_false_positive_style_redundant_string_escape
Merge pull request #11332 from fatkodima/class_structure-private-constants
Improve doc of EnforcedShorthandSyntax: consistent
Fix an error for `Style/SelectByRegexp`
Merge pull request #11343 from soroktree/fix/comment-indentation-11237
[Fix #11237] Fix `Layout/CommentIndentation` comment aligned with access modifier indentation when EnforcedStyle is outdent
[Fix #11346] Fix a false positive for `Style/RedundantStringEscape`
Add new `Style/MapToSet` cop
Allow inherit_from to accept a glob (#11261)
Fix an error for `Style/GuardClause`
Ignore private constants in `Layout/ClassStructure` cop
Merge pull request #11336 from fatkodima/identical_conditional_branches-last-child
Fix `Style/IdenticalConditionalBranches` to ignore identical leading lines when branch has single child and is used in return context
Fix an error for `Style/RequireOrder`
Merge pull request #11331 from fatkodima/space_around_keyword-super-ranges
Accept `super` within ranges for `Layout/SpaceAroundKeyword` cop
Merge pull request #11328 from fatkodima/concat_array_literals-autocorrection
Support autocorrection for percent literals in `Style/ConcatArrayLiterals`
Revert "CI against Ruby 3.2 on Windows"
CI against Ruby 3.2 on Windows
Fix new offenses for `Layout/ClassStructure` cop
Accept simple freezed constants in `Layout/ClassStructure` and correctly handle class methods
Fix an error for `Style/RequireOrder` when using `require` inside `rescue` body
Suppress `Performance/RedundantStringChars` offense
Make `Style/ZeroLengthPredicate` aware of `array.length.zero?`
More rubocop optimizations
[Fix #11204] Fix a false negative for `Lint/RedundantCopDisableDirective`
[Fix #11320] Fix a false positive for `Lint/RequireParentheses`
Switch back the docs version
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands